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