From 85e67c4fea8f8a9c6b7394344c76f956275310b6 Mon Sep 17 00:00:00 2001 From: Hooray <304327508@qq.com> Date: Thu, 31 Jul 2025 23:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=AC=A1=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E5=B1=82=E6=9C=80=E6=B7=B1=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/menu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/menu.ts b/src/store/modules/menu.ts index 34e55f63..3d8cac80 100755 --- a/src/store/modules/menu.ts +++ b/src/store/modules/menu.ts @@ -93,7 +93,7 @@ export const useMenuStore = defineStore( }) function getDeepestPath(menu: Menu.recordRaw, rootPath = '') { let retnPath = '' - if (menu.children) { + if (menu.children?.some(item => item.meta?.menu !== false)) { const item = menu.children.find(item => item.meta?.menu !== false) if (item) { retnPath = getDeepestPath(item, resolveRoutePath(rootPath, menu.path))