mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-05 07:27:06 +08:00
修复:异步路由部分配置不生效问题;
This commit is contained in:
parent
1345a02cd0
commit
ce83564335
@ -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…
x
Reference in New Issue
Block a user