mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
parent
3520fd9465
commit
7c16c2fa9e
@ -58,7 +58,8 @@ export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModul
|
|||||||
routeList.forEach((route) => {
|
routeList.forEach((route) => {
|
||||||
if (route.component) {
|
if (route.component) {
|
||||||
if ((route.component as string).toUpperCase() === 'LAYOUT') {
|
if ((route.component as string).toUpperCase() === 'LAYOUT') {
|
||||||
route.component = LayoutMap.get(route.component as LayoutMapKey);
|
//route.component = LayoutMap.get(route.component as LayoutMapKey);
|
||||||
|
route.component = LayoutMap.get((route.component as string).toUpperCase() as LayoutMapKey);
|
||||||
} else {
|
} else {
|
||||||
route.children = [cloneDeep(route)];
|
route.children = [cloneDeep(route)];
|
||||||
route.component = LAYOUT;
|
route.component = LAYOUT;
|
||||||
|
Loading…
Reference in New Issue
Block a user