From 264da00e5d2cd8139907c2ac11a046649d942f4b Mon Sep 17 00:00:00 2001 From: shabby2333 <1308933842@qq.com> Date: Fri, 13 Jan 2023 13:03:38 +0000 Subject: [PATCH] =?UTF-8?q?fix(components):=20=E4=BF=AE=E5=A4=8D=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E5=9C=A8path=E4=B8=AD=E5=8C=85=E5=90=AB=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E8=B7=AF=E5=8D=95=E8=AF=8D=E5=BE=84=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E8=A2=AB=E6=BF=80=E6=B4=BB=E4=BC=9A=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E5=B1=95=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/router/menu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/router/menu.ts b/src/utils/router/menu.ts index 05d0fbf32..40f7f376e 100644 --- a/src/utils/router/menu.ts +++ b/src/utils/router/menu.ts @@ -45,7 +45,7 @@ export function getActiveKeyPathsOfMenus(activeKey: string, menus: App.GlobalMen function getActiveKeyPathsOfMenu(activeKey: string, menu: App.GlobalMenuOption) { const keys: string[] = []; - if (activeKey.includes(menu.routeName)) { + if (activeKey.startsWith(menu.routeName)) { keys.push(menu.routeName); } if (menu.children) {