diff --git a/src/modules/base/pages/main/components/views.vue b/src/modules/base/pages/main/components/views.vue
index 2bc41d3..81a6860 100644
--- a/src/modules/base/pages/main/components/views.vue
+++ b/src/modules/base/pages/main/components/views.vue
@@ -1,13 +1,11 @@
-
-
-
-
-
-
-
+
+
+
+
+
@@ -17,7 +15,7 @@ import { computed, onMounted, onUnmounted, ref } from "vue";
import { useBase } from "/$/base";
import { useCool } from "/@/cool";
-const { refs, setRefs, mitt } = useCool();
+const { mitt } = useCool();
const { process, app } = useBase();
// 缓存数
@@ -37,27 +35,11 @@ function refresh() {
key.value += 1;
}
-// 滚动到
-function scrollTo({ el, top }: { el?: string; top?: number }) {
- const scrollbar = refs.scrollbar.wrapRef;
-
- if (el) {
- top = scrollbar.querySelector(el).offsetTop;
- }
-
- scrollbar.scrollTo({
- top,
- behavior: "smooth"
- });
-}
-
onMounted(() => {
- mitt.on("view.scrollTo", scrollTo);
mitt.on("view.refresh", refresh);
});
onUnmounted(() => {
- mitt.off("view.scrollTo");
mitt.off("view.refresh");
});
@@ -72,10 +54,6 @@ onUnmounted(() => {
border-radius: 4px;
position: relative;
- :deep(.el-scrollbar__view) {
- height: 100%;
- }
-
.none-enter-active {
position: absolute;
}
diff --git a/src/modules/base/static/css/index.scss b/src/modules/base/static/css/index.scss
index 6830b75..2c13859 100644
--- a/src/modules/base/static/css/index.scss
+++ b/src/modules/base/static/css/index.scss
@@ -1,16 +1,3 @@
-*::-webkit-scrollbar {
- width: 10px;
- height: 10px;
-}
-
-*::-webkit-scrollbar-thumb {
- background-color: rgba(144, 147, 153, 0.3);
-}
-
-*::-webkit-scrollbar-track {
- background: transparent;
-}
-
#app {
height: 100vh;
width: 100vw;
diff --git a/src/modules/demo/views/home/index.vue b/src/modules/demo/views/home/index.vue
index 8fee75f..1a3a9f2 100644
--- a/src/modules/demo/views/home/index.vue
+++ b/src/modules/demo/views/home/index.vue
@@ -1,54 +1,56 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+