|
|
@ -30,7 +30,7 @@ function asyncImportRoute(routes: AppRouteRecordRaw[] | undefined) { |
|
|
|
const { component, name } = item |
|
|
|
const { component, name } = item |
|
|
|
const { children } = item |
|
|
|
const { children } = item |
|
|
|
if (component) { |
|
|
|
if (component) { |
|
|
|
const layoutFound = LayoutMap.get(component.toUpperCase()) |
|
|
|
const layoutFound = LayoutMap.get(component.replace('/index.vue', '').toUpperCase()) |
|
|
|
if (layoutFound) |
|
|
|
if (layoutFound) |
|
|
|
item.component = layoutFound |
|
|
|
item.component = layoutFound |
|
|
|
else |
|
|
|
else |
|
|
|