From 492dd7b05212f1338d35257ce59b89359b003aa3 Mon Sep 17 00:00:00 2001 From: insistence <3055204202@qq.com> Date: Wed, 19 Feb 2025 12:20:54 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96TopNav=E5=86=85?= =?UTF-8?q?=E9=93=BE=E8=8F=9C=E5=8D=95=E7=82=B9=E5=87=BB=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-fastapi-frontend/src/components/TopNav/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-fastapi-frontend/src/components/TopNav/index.vue b/ruoyi-fastapi-frontend/src/components/TopNav/index.vue index 6cae657..d193409 100644 --- a/ruoyi-fastapi-frontend/src/components/TopNav/index.vue +++ b/ruoyi-fastapi-frontend/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;