修复:异步路由部分配置不生效问题;

master
chenghongxing 4 years ago
parent 1345a02cd0
commit ce83564335
  1. 5
      src/utils/routerUtil.js

@ -62,6 +62,11 @@ function parseRoutes(routesConfig, routerMap) {
query: routeCfg.query,
...routeCfg.meta
}
Object.keys(cfgMeta).forEach(key => {
if (cfgMeta[key] === undefined || cfgMeta[key] === null || cfgMeta[key] === '') {
delete cfgMeta[key]
}
})
Object.assign(meta, cfgMeta)
const route = {
path: routeCfg.path || router.path || routeCfg.router,

Loading…
Cancel
Save