mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 13:37:45 +08:00
代码微调
This commit is contained in:
parent
ef5e2fe76c
commit
4f489c91d4
@ -86,7 +86,7 @@
|
||||
}
|
||||
|
||||
.fantastic-admin-home .text::after {
|
||||
content: '…';
|
||||
content: "…";
|
||||
position: absolute;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user