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

fix: the problem that it does not prompt correctly when loading routes;
master
chenghongxing 4 years ago
parent 0c41878174
commit 83c6381a4b
  1. 2
      src/utils/routerUtil.js

@ -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…
Cancel
Save