chore: add menu invisible configuration for async router; 🌟
This commit is contained in:
parent
af0cce4f1e
commit
a55210f9a6
|
|
@ -36,6 +36,9 @@ function parseRoutes(routesConfig, routerMap) {
|
|||
page: routeCfg.page || router.page
|
||||
}
|
||||
}
|
||||
if (routeCfg.invisible || router.invisible) {
|
||||
route.meta.invisible = true
|
||||
}
|
||||
if (routeCfg.children && routeCfg.children.length > 0) {
|
||||
route.children = parseRoutes(routeCfg.children, routerMap)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue