We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22ab17f commit 14ec3c0Copy full SHA for 14ec3c0
src/store/modules/menu.ts
@@ -93,7 +93,7 @@ export const useMenuStore = defineStore(
93
})
94
function getDeepestPath(menu: Menu.recordRaw, rootPath = '') {
95
let retnPath = ''
96
- if (menu.children) {
+ if (menu.children?.some(item => item.meta?.menu !== false)) {
97
const item = menu.children.find(item => item.meta?.menu !== false)
98
if (item) {
99
retnPath = getDeepestPath(item, resolveRoutePath(rootPath, menu.path))
0 commit comments