From 90e69b157a479cbc434761c9ae76d9b15d4bb8ca Mon Sep 17 00:00:00 2001 From: Hooray <304327508@qq.com> Date: Thu, 31 Jul 2025 23:05:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E6=AC=A1?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E7=AC=AC=E4=B8=80=E5=B1=82=E6=9C=80=E6=B7=B1?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=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))