Browse Source

🎟 用户信息持久化

master
wangxiang 3 years ago
parent
commit
3a9b25f529
  1. 6
      kicc-ui/src/router/helper/routeHelper.ts

6
kicc-ui/src/router/helper/routeHelper.ts

@ -13,8 +13,8 @@ const IFRAME = () => import('/@/views/sys/iframe/FrameBlank.vue'); @@ -13,8 +13,8 @@ const IFRAME = () => import('/@/views/sys/iframe/FrameBlank.vue');
/** 布局组件Map */
const LayoutMap = new Map<string, () => Promise<typeof import('*.vue')>>();
LayoutMap.set('LAYOUT', LAYOUT);
LayoutMap.set('IFRAME', IFRAME);
LayoutMap.set('Layout', LAYOUT);
LayoutMap.set('Iframe', IFRAME);
/** 性能优化,避免多次加载views下的组件 */
let dynamicViewsModules: Record<string, () => Promise<Recordable>>;
@ -43,7 +43,7 @@ export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModul @@ -43,7 +43,7 @@ export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModul
dynamicViewsModules = dynamicViewsModules || import.meta.glob('../../views/**/*.{vue,tsx}');
routeList.forEach((item) => {
if (!item.component && item.meta?.frameSrc) {
item.component = 'IFRAME';
item.component = 'Iframe';
}
const { component, name, children } = item;
if (component) {

Loading…
Cancel
Save