代码微调

This commit is contained in:
Hooray Hu 2023-05-24 10:58:02 +08:00
parent ef5e2fe76c
commit 4f489c91d4
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@
}
.fantastic-admin-home .text::after {
content: '…';
content: "…";
position: absolute;
padding-left: 5px;
}

View File

@ -120,8 +120,8 @@ const useMenuStore = defineStore(
function filterAsyncMenus<T extends Menu.recordMainRaw[] | Menu.recordRaw[]>(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)