From 25ee32074a07a236e9f8dd9741a85b498e4ff3b0 Mon Sep 17 00:00:00 2001 From: xlsea Date: Tue, 2 Sep 2025 15:10:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(projects):=20=E8=B7=AF=E7=94=B1=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=20activeMenu=20=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/route/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/route/index.ts b/src/store/modules/route/index.ts index 14ff0f8a..f340d642 100644 --- a/src/store/modules/route/index.ts +++ b/src/store/modules/route/index.ts @@ -127,7 +127,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => { } // @ts-expect-error no hidden field route.meta.hideInMenu = route.hidden; - if (route.meta.hideInMenu && parent) { + if (route.meta.hideInMenu && parent && !route.meta.activeMenu) { // @ts-expect-error parent.name is activeMenu type route.meta.activeMenu = parent.name; }