|
@@ -6,6 +6,7 @@ import { cloneDeep, omit } from 'lodash-es'; |
|
@@ -6,6 +6,7 @@ import { cloneDeep, omit } from 'lodash-es'; |
6
|
import { warn } from '/@/utils/log';
|
6
|
import { warn } from '/@/utils/log';
|
7
|
import { createRouter, createWebHashHistory } from 'vue-router';
|
7
|
import { createRouter, createWebHashHistory } from 'vue-router';
|
8
|
|
8
|
|
|
|
9
|
+export const OUTSIDE_LINK_PREFIX = '/outside/link';
|
9
|
export type LayoutMapKey = 'LAYOUT';
|
10
|
export type LayoutMapKey = 'LAYOUT';
|
10
|
const IFRAME = () => import('/@/views/sys/iframe/FrameBlank.vue');
|
11
|
const IFRAME = () => import('/@/views/sys/iframe/FrameBlank.vue');
|
11
|
|
12
|
|
|
@@ -81,6 +82,9 @@ export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModul |
|
@@ -81,6 +82,9 @@ export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModul |
81
|
route.meta = meta;
|
82
|
route.meta = meta;
|
82
|
}
|
83
|
}
|
83
|
}
|
84
|
}
|
|
|
85
|
+ if (!route.path.startsWith('/') && route.meta.isLink) {
|
|
|
86
|
+ route.path = `${OUTSIDE_LINK_PREFIX}${route.path}`;
|
|
|
87
|
+ }
|
84
|
route.children && asyncImportRoute(route.children);
|
88
|
route.children && asyncImportRoute(route.children);
|
85
|
});
|
89
|
});
|
86
|
return routeList as unknown as T[];
|
90
|
return routeList as unknown as T[];
|