Commit 8e5e19b7 by 姜雷

载入路由错误后继续载入其他路由

parent 9cd3e695
......@@ -3,14 +3,23 @@ import System from '../lib/main';
window.manageShell = { default: System };
setTimeout(() => {
let allAasyncRouterMap = [
...customerManage.default,
...baseManage.default,
...systemManage.default,
...operateManage.default,
...statisticsManage.default,
...deviceManage.default,
let allAasyncRouterMap = [];
let routeNameList = [
'customerManage',
'baseManage',
'systemManage',
'operateManage',
'statisticsManage',
'deviceManage',
];
routeNameList.map(name => {
try {
allAasyncRouterMap = allAasyncRouterMap.concat(window[name].default);
} catch (error) {
console.error(name + ': ', error);
}
return name;
});
System.createSystem({
basePath: process.env.VUE_APP_BASE_URL,
......
let allAasyncRouterMap = [
...customerManage.default,
...baseManage.default,
...systemManage.default,
...operateManage.default,
...statisticsManage.default,
...deviceManage.default,
let allAasyncRouterMap = [];
let routeNameList = [
'customerManage',
'baseManage',
'systemManage',
'operateManage',
'statisticsManage',
'deviceManage',
];
routeNameList.map(name => {
try {
allAasyncRouterMap = allAasyncRouterMap.concat(window[name].default);
} catch (error) {
console.error(name + ': ', error);
}
return name;
});
const System = manageShell.default;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment