Commit 01e75d08 by 姜雷

Merge branch 'test' into 'master'

Test See merge request !60
parents 613bc9e0 2502d71a
...@@ -3,14 +3,23 @@ import System from '../lib/main'; ...@@ -3,14 +3,23 @@ import System from '../lib/main';
window.manageShell = { default: System }; window.manageShell = { default: System };
setTimeout(() => { setTimeout(() => {
let allAasyncRouterMap = [ let allAasyncRouterMap = [];
...customerManage.default, let routeNameList = [
...baseManage.default, 'customerManage',
...systemManage.default, 'baseManage',
...operateManage.default, 'systemManage',
...statisticsManage.default, 'operateManage',
...deviceManage.default, 'statisticsManage',
'deviceManage',
]; ];
routeNameList.map(name => {
try {
allAasyncRouterMap = allAasyncRouterMap.concat(window[name].default);
} catch (error) {
console.error(name + ': ', error);
}
return name;
});
System.createSystem({ System.createSystem({
basePath: process.env.VUE_APP_BASE_URL, basePath: process.env.VUE_APP_BASE_URL,
......
let allAasyncRouterMap = [ let allAasyncRouterMap = [];
...customerManage.default, let routeNameList = [
...baseManage.default, 'customerManage',
...systemManage.default, 'baseManage',
...operateManage.default, 'systemManage',
...statisticsManage.default, 'operateManage',
...deviceManage.default, 'statisticsManage',
'deviceManage',
]; ];
routeNameList.map(name => {
try {
allAasyncRouterMap = allAasyncRouterMap.concat(window[name].default);
} catch (error) {
console.error(name + ': ', error);
}
return name;
});
const System = manageShell.default; 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