mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-19 11:40:05 +08:00
fix:
解决只有一个菜单时无法显示目录 Signed-off-by: zhang.xionghui <13834222683@163.com>
This commit is contained in:
parent
0bbf45ce51
commit
c9d242c7e1
@ -73,6 +73,8 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
|
||||
} else {
|
||||
route.component = ParentView
|
||||
}
|
||||
// 解决只有一个菜单时无法显示目录
|
||||
route.alwaysShow = true
|
||||
} else { // 根节点
|
||||
route.component = loadView(route.component)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user