mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
修复:异步路由部分配置不生效问题;
This commit is contained in:
parent
56ced4c7d7
commit
c58e9f7ce0
@ -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