mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-05 07:27:06 +08:00
修复:加载异步路由不能正确提示的问题;
fix: the problem that it does not prompt correctly when loading routes;
This commit is contained in:
parent
0c41878174
commit
83c6381a4b
@ -32,7 +32,7 @@ function parseRoutes(routesConfig, routerMap) {
|
||||
routesConfig.forEach(item => {
|
||||
// 获取注册在 routerMap 中的 router,初始化 routeCfg
|
||||
let router = undefined, routeCfg = {}
|
||||
if (typeof item === 'string' && routerMap[item]) {
|
||||
if (typeof item === 'string') {
|
||||
router = routerMap[item]
|
||||
routeCfg = {path: router.path || item, router: item}
|
||||
} else if (typeof item === 'object') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user