mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-05 07:27:06 +08:00
修复:异步路由加载异常问题;
fix: the loading exception of async routes;
This commit is contained in:
parent
990daf2d27
commit
bb7fa9abb6
@ -34,7 +34,7 @@ function parseRoutes(routesConfig, routerMap) {
|
||||
let router = undefined, routeCfg = {}
|
||||
if (typeof item === 'string') {
|
||||
router = routerMap[item]
|
||||
routeCfg = {path: router.path || item, router: item}
|
||||
routeCfg = {path: (router && router.path) || item, router: item}
|
||||
} else if (typeof item === 'object') {
|
||||
router = routerMap[item.router]
|
||||
routeCfg = item
|
||||
|
Loading…
x
Reference in New Issue
Block a user