|
|
@ -1,6 +1,7 @@ |
|
|
|
import type { RouteRecordNormalized, Router } from 'vue-router' |
|
|
|
import type { RouteRecordNormalized, Router } from 'vue-router' |
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router' |
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router' |
|
|
|
import { cloneDeep, omit } from 'lodash-es' |
|
|
|
import { cloneDeep, omit } from 'lodash-es' |
|
|
|
|
|
|
|
import type { Component } from 'vue' |
|
|
|
import { EXCEPTION_COMPONENT, LAYOUT, getParentLayout } from '@/router/constant' |
|
|
|
import { EXCEPTION_COMPONENT, LAYOUT, getParentLayout } from '@/router/constant' |
|
|
|
import type { AppRouteModule, AppRouteRecordRaw } from '@/router/types' |
|
|
|
import type { AppRouteModule, AppRouteRecordRaw } from '@/router/types' |
|
|
|
import { warn } from '@/utils/log' |
|
|
|
import { warn } from '@/utils/log' |
|
|
@ -8,7 +9,7 @@ import { isHttpUrl } from '@/utils/is' |
|
|
|
|
|
|
|
|
|
|
|
export type LayoutMapKey = 'LAYOUT' |
|
|
|
export type LayoutMapKey = 'LAYOUT' |
|
|
|
const IFRAME = () => import('@/views/base/iframe/FrameBlank.vue') |
|
|
|
const IFRAME = () => import('@/views/base/iframe/FrameBlank.vue') |
|
|
|
const LayoutMap = new Map<string, () => Promise<typeof import('*.vue')>>() |
|
|
|
const LayoutMap = new Map<string, () => Promise<Component>>() |
|
|
|
|
|
|
|
|
|
|
|
LayoutMap.set('LAYOUT', LAYOUT) |
|
|
|
LayoutMap.set('LAYOUT', LAYOUT) |
|
|
|
LayoutMap.set('IFRAME', IFRAME) |
|
|
|
LayoutMap.set('IFRAME', IFRAME) |
|
|
|