diff --git a/src/store/modules/permission.ts b/src/store/modules/permission.ts index dcb3cd4..ed64e46 100644 --- a/src/store/modules/permission.ts +++ b/src/store/modules/permission.ts @@ -100,6 +100,10 @@ export const usePermissionStore = defineStore('permission', () => { } if (lastRouter) { el.path = lastRouter.path + '/' + el.path; + if (el.children && el.children.length) { + children = children.concat(filterChildren(el.children, el)) + return + } } children = children.concat(el); });