1
0
mirror of https://github.com/iczer/vue-antd-admin synced 2025-04-06 04:00:06 +08:00

修复:加载异步路由不能正确提示的问题;

fix: the problem that it does not prompt correctly when loading routes;
This commit is contained in:
chenghongxing 2021-01-12 11:56:28 +08:00
parent 3a2e31af08
commit a647cfa1e4

@ -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') {