mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
chore: update
This commit is contained in:
parent
21e5387ead
commit
e023537eb5
@ -10,9 +10,9 @@ import { usePermissionStoreHook } from "@/store/modules/permission";
|
|||||||
import {
|
import {
|
||||||
isUrl,
|
isUrl,
|
||||||
openLink,
|
openLink,
|
||||||
storageLocal,
|
cloneDeep,
|
||||||
isAllEmpty,
|
isAllEmpty,
|
||||||
cloneDeep
|
storageLocal
|
||||||
} from "@pureadmin/utils";
|
} from "@pureadmin/utils";
|
||||||
import {
|
import {
|
||||||
ascending,
|
ascending,
|
||||||
@ -27,9 +27,9 @@ import {
|
|||||||
} from "./utils";
|
} from "./utils";
|
||||||
import {
|
import {
|
||||||
type Router,
|
type Router,
|
||||||
createRouter,
|
|
||||||
type RouteRecordRaw,
|
type RouteRecordRaw,
|
||||||
type RouteComponent
|
type RouteComponent,
|
||||||
|
createRouter
|
||||||
} from "vue-router";
|
} from "vue-router";
|
||||||
import {
|
import {
|
||||||
type DataInfo,
|
type DataInfo,
|
||||||
@ -61,7 +61,7 @@ export const constantRoutes: Array<RouteRecordRaw> = formatTwoStageRoutes(
|
|||||||
formatFlatteningRoutes(buildHierarchyTree(ascending(routes.flat(Infinity))))
|
formatFlatteningRoutes(buildHierarchyTree(ascending(routes.flat(Infinity))))
|
||||||
);
|
);
|
||||||
|
|
||||||
/** 初始的静态路由,用来在退出登陆时重置路由 */
|
/** 初始的静态路由,用于退出登陆时重置路由 */
|
||||||
const initConstantRoutes: Array<RouteRecordRaw> = cloneDeep(constantRoutes);
|
const initConstantRoutes: Array<RouteRecordRaw> = cloneDeep(constantRoutes);
|
||||||
|
|
||||||
/** 用于渲染菜单,保持原始层级 */
|
/** 用于渲染菜单,保持原始层级 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user