From 3a9b25f52905f47440d24bb5442383f6ea594eb3 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Sat, 16 Apr 2022 04:23:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=9F=20=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=8C=81=E4=B9=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kicc-ui/src/router/helper/routeHelper.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {