From 84282b097de21c034ecadfaa4be07fdf951e3a62 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 30 Jun 2022 15:59:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=88=B7=E6=96=B0=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E5=90=8E=E6=8E=92=E7=89=88=E9=94=99=E4=B9=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/layout/components/Topbar.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/layout/components/Topbar.vue b/frontend/src/layout/components/Topbar.vue index cad4ee778c..c6f5b46a34 100644 --- a/frontend/src/layout/components/Topbar.vue +++ b/frontend/src/layout/components/Topbar.vue @@ -289,6 +289,11 @@ export default { }, // 设置侧边栏的显示和隐藏 setSidebarHide(route) { + const hidePaths = ['/person-info', '/person-pwd', '/about'] + if (hidePaths.includes(route.path)) { + this.$store.dispatch('app/toggleSideBarHide', true) + return + } // if (!route.children || route.children.length === 1) { if (route.name !== 'system' && (!route.children || this.showChildLength(route) === 1)) { this.$store.dispatch('app/toggleSideBarHide', true)