From 8b97a0c09b65a55bae0eb8875dd58c2b101cb08c Mon Sep 17 00:00:00 2001 From: RuoYi Date: Tue, 17 Dec 2024 14:26:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96TopNav=E5=86=85=E9=93=BE?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=82=B9=E5=87=BB=E6=B2=A1=E6=9C=89=E9=AB=98?= =?UTF-8?q?=E4=BA=AE(IB8WHJ)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TopNav/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue index 1f666d3..05fe2ad 100644 --- a/src/components/TopNav/index.vue +++ b/src/components/TopNav/index.vue @@ -100,9 +100,9 @@ const activeMenu = computed(() => { let activePath = path; if (path !== undefined && path.lastIndexOf("/") > 0 && hideList.indexOf(path) === -1) { const tmpPath = path.substring(1, path.length); - activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/")); if (!route.meta.link) { - appStore.toggleSideBarHide(false); + activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/")); + appStore.toggleSideBarHide(false); } } else if(!route.children) { activePath = path;