From 98d288f69f0b3924dc773ce95b76e1321ffb13c0 Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Wed, 24 May 2023 10:58:09 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BB=A3=E7=A0=81=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/loading.css | 2 +- src/store/modules/menu.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/loading.css b/public/loading.css index ac2d551b..1fe770c9 100644 --- a/public/loading.css +++ b/public/loading.css @@ -86,7 +86,7 @@ } .fantastic-admin-home .text::after { - content: '…'; + content: "…"; position: absolute; padding-left: 5px; } diff --git a/src/store/modules/menu.ts b/src/store/modules/menu.ts index 912ff7a8..05d1d04c 100644 --- a/src/store/modules/menu.ts +++ b/src/store/modules/menu.ts @@ -120,8 +120,8 @@ const useMenuStore = defineStore( function filterAsyncMenus(menus: T, permissions: string[]): T { const res: any = [] menus.forEach((menu) => { - const tmpMenu = cloneDeep(menu) - if (hasPermission(permissions, tmpMenu)) { + if (hasPermission(permissions, menu)) { + const tmpMenu = cloneDeep(menu) if (tmpMenu.children) { tmpMenu.children = filterAsyncMenus(tmpMenu.children, permissions) as Menu.recordRaw[] tmpMenu.children.length && res.push(tmpMenu)