Skip to content

Commit 14ec3c0

Browse files
committed
优化次导航第一层最深路径解析逻辑,支持查询参数
1 parent 22ab17f commit 14ec3c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/modules/menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const useMenuStore = defineStore(
9393
})
9494
function getDeepestPath(menu: Menu.recordRaw, rootPath = '') {
9595
let retnPath = ''
96-
if (menu.children) {
96+
if (menu.children?.some(item => item.meta?.menu !== false)) {
9797
const item = menu.children.find(item => item.meta?.menu !== false)
9898
if (item) {
9999
retnPath = getDeepestPath(item, resolveRoutePath(rootPath, menu.path))

0 commit comments

Comments
 (0)