diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index 045e49f..c4199b0 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -42,12 +42,3 @@ const tagsViewStore = useTagsViewStore() } } - - \ No newline at end of file diff --git a/src/layout/index.vue b/src/layout/index.vue index 52d821b..2df75bd 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -1,15 +1,17 @@ @@ -72,6 +74,14 @@ function setLayout() { height: 100%; width: 100%; + .el-scrollbar{ + height: 100%; + } + + :deep(.el-scrollbar__wrap) { + overflow-x: hidden; + } + &.mobile.openSidebar { position: fixed; top: 0; diff --git a/src/main.js b/src/main.js index b399777..f349872 100644 --- a/src/main.js +++ b/src/main.js @@ -6,6 +6,7 @@ import ElementPlus from 'element-plus' import locale from 'element-plus/lib/locale/lang/zh-cn' // 中文语言 import '@/assets/styles/index.scss' // global css + import App from './App' import store from './store' import router from './router'