From 0a8c33c3cb2265d19520adc89402a62ae6fea4cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Fri, 10 Nov 2023 15:59:09 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E4=BA=94=E7=BA=A7?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E7=BC=93=E5=AD=98=E6=97=A0=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/permission.ts | 4 ++++ 1 file changed, 4 insertions(+) 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); });