mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 21:12:41 +08:00
wip: refactor layout
This commit is contained in:
@@ -6,7 +6,7 @@ import { createProgressGuard } from './progressGuard';
|
||||
import { createPermissionGuard } from './permissionGuard';
|
||||
import { createPageLoadingGuard } from './pageLoadingGuard';
|
||||
|
||||
import { useGlobSetting, useProjectSetting } from '/@/settings/use';
|
||||
import { useGlobSetting, useProjectSetting } from '/@/hooks/setting';
|
||||
|
||||
import { getIsOpenTab, setCurrentTo } from '/@/utils/helper/routeHelper';
|
||||
import { setTitle } from '/@/utils/browser';
|
||||
|
@@ -7,6 +7,7 @@ import { filter } from '/@/utils/helper/treeHelper';
|
||||
import router from '/@/router';
|
||||
import { PermissionModeEnum } from '/@/enums/appEnum';
|
||||
import { pathToRegexp } from 'path-to-regexp';
|
||||
|
||||
import modules from 'globby!/@/router/menus/modules/**/*.@(ts)';
|
||||
|
||||
const menuModules: MenuModule[] = [];
|
||||
@@ -44,7 +45,6 @@ async function getAsyncMenus() {
|
||||
// 获取深层扁平化菜单
|
||||
export const getFlatMenus = async () => {
|
||||
const menus = await getAsyncMenus();
|
||||
|
||||
return flatMenus(menus);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user