Merge branch 'master' of https://e.coding.net/ctcdevteam/ehs/ehs_web
This commit is contained in:
commit
3b71931f3a
|
@ -6,7 +6,7 @@ const routes = [
|
||||||
name: "layout",
|
name: "layout",
|
||||||
path: "/",
|
path: "/",
|
||||||
component: () => import(/* webpackChunkName: "layout" */ '@/layout'),
|
component: () => import(/* webpackChunkName: "layout" */ '@/layout'),
|
||||||
redirect: config.DASHBOARD_URL || '/dashboard',
|
redirect: config.DASHBOARD_URL || getBaseDashboard(),
|
||||||
children: []
|
children: []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -31,5 +31,11 @@ const routes = [
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
function getBaseDashboard() {
|
||||||
|
let base_dashboard = this.$TOOL.data.get('BASE_INFO').base.base_dashboard;
|
||||||
|
if (base_dashboard == null || base_dashboard == undefined) {
|
||||||
|
base_dashboard = '/dashboard'
|
||||||
|
}
|
||||||
|
return base_dashboard
|
||||||
|
}
|
||||||
export default routes;
|
export default routes;
|
||||||
|
|
Loading…
Reference in New Issue