|
@@ -1,7 +1,7 @@
|
|
|
|
|
|
import * as loginService from '@/api/login'
|
|
|
|
|
|
-import { BasicLayout, RouteView, BlankLayout, PageView } from '@/layouts'
|
|
|
+import { BasicLayout, BlankLayout, PageView, RouteView } from '@/layouts'
|
|
|
|
|
|
|
|
|
const constantRouterComponents = {
|
|
@@ -116,12 +116,18 @@ export const generator = (routerMap, parent) => {
|
|
|
|
|
|
name: item.name || item.key || '',
|
|
|
|
|
|
- component: constantRouterComponents[item.component || item.key],
|
|
|
+
|
|
|
|
|
|
-
|
|
|
+ component: (constantRouterComponents[item.component || item.key]) || (() => import(`@/views/${item.component}`)),
|
|
|
|
|
|
|
|
|
- meta: { title: title, icon: icon || undefined, hiddenHeaderContent: hiddenHeaderContent, target: target, permission: item.name }
|
|
|
+ meta: {
|
|
|
+ title: title,
|
|
|
+ icon: icon || undefined,
|
|
|
+ hiddenHeaderContent: hiddenHeaderContent,
|
|
|
+ target: target,
|
|
|
+ permission: item.name
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (show === false) {
|