From ad12376037197b28e0c17e9cf5a6422f14a6abfc Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Mon, 20 Nov 2023 15:10:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AF=BC=E8=88=AA=E9=A1=B6?= =?UTF-8?q?=E9=83=A8=E6=A8=A1=E5=BC=8F=E4=B8=8B=E5=B1=95=E7=A4=BA=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 8 ++--- src/assets/styles/globals.scss | 2 +- src/layouts/components/Header/index.vue | 30 ++++--------------- src/layouts/components/MainSidebar/index.vue | 15 ++++------ src/layouts/components/Menu/item.vue | 7 ++--- src/layouts/components/SubSidebar/index.vue | 10 +++---- .../components/Topbar/Toolbar/index.vue | 10 +++---- 7 files changed, 30 insertions(+), 52 deletions(-) diff --git a/src/App.vue b/src/App.vue index e479b33b..0427bd59 100755 --- a/src/App.vue +++ b/src/App.vue @@ -28,10 +28,10 @@ const subSidebarActualWidth = computed(() => { } if ( menuStore.sidebarMenus.length === 1 - && ( - !menuStore.sidebarMenus[0].children - || menuStore.sidebarMenus[0]?.children.every(item => item.meta?.sidebar === false) - ) + && ( + !menuStore.sidebarMenus[0].children + || menuStore.sidebarMenus[0]?.children.every(item => item.meta?.sidebar === false) + ) ) { actualWidth = 0 } diff --git a/src/assets/styles/globals.scss b/src/assets/styles/globals.scss index b4460de6..acc186e0 100755 --- a/src/assets/styles/globals.scss +++ b/src/assets/styles/globals.scss @@ -1,7 +1,7 @@ // 页面布局 CSS 变量 :root { // 头部高度 - --g-header-height: 80px; + --g-header-height: 60px; // 侧边栏宽度 --g-main-sidebar-width: 80px; --g-sub-sidebar-width: 220px; diff --git a/src/layouts/components/Header/index.vue b/src/layouts/components/Header/index.vue index f16ae138..dfd8e4f8 100755 --- a/src/layouts/components/Header/index.vue +++ b/src/layouts/components/Header/index.vue @@ -39,13 +39,13 @@ function handlerMouserScroll(event: WheelEvent) { }" >