diff --git a/kicc-ui/src/router/helper/routeHelper.ts b/kicc-ui/src/router/helper/routeHelper.ts index cbf16313..705ed760 100644 --- a/kicc-ui/src/router/helper/routeHelper.ts +++ b/kicc-ui/src/router/helper/routeHelper.ts @@ -13,8 +13,8 @@ const IFRAME = () => import('/@/views/sys/iframe/FrameBlank.vue'); /** 布局组件Map */ const LayoutMap = new Map Promise>(); -LayoutMap.set('LAYOUT', LAYOUT); -LayoutMap.set('IFRAME', IFRAME); +LayoutMap.set('Layout', LAYOUT); +LayoutMap.set('Iframe', IFRAME); /** 性能优化,避免多次加载views下的组件 */ let dynamicViewsModules: Record Promise>; @@ -43,7 +43,7 @@ export function transformObjToRoute(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) {