mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-05 19:41:37 +08:00
Update routerUtil.js
This commit is contained in:
parent
5de611523c
commit
0f1a845189
@ -50,10 +50,10 @@ function parseRoutes(routesConfig, routerMap) {
|
|||||||
component: router.component,
|
component: router.component,
|
||||||
redirect: routeCfg.redirect || router.redirect,
|
redirect: routeCfg.redirect || router.redirect,
|
||||||
meta: {
|
meta: {
|
||||||
authority: routeCfg.authority || router.authority || '*',
|
authority: routeCfg.authority || router.authority || routeCfg.meta?.authority || router.meta?.authority || '*',
|
||||||
icon: routeCfg.icon || router.icon,
|
icon: routeCfg.icon || router.icon || routeCfg.meta?.icon || router.meta?.icon,
|
||||||
page: routeCfg.page || router.page,
|
page: routeCfg.page || router.page || routeCfg.meta?.page || router.meta?.page,
|
||||||
link: routeCfg.link || router.link
|
link: routeCfg.link || router.link || routeCfg.meta?.link || router.meta?.link
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (routeCfg.invisible || router.invisible) {
|
if (routeCfg.invisible || router.invisible) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user