mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 11:11:55 +08:00
!369 解决只有一个菜单时无法显示目录
Merge pull request !369 from zhang.xionghui/master
This commit is contained in:
commit
ee150702b7
@ -73,6 +73,8 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
|
|||||||
} else {
|
} else {
|
||||||
route.component = ParentView
|
route.component = ParentView
|
||||||
}
|
}
|
||||||
|
// 解决只有一个菜单时无法显示目录
|
||||||
|
route.alwaysShow = true
|
||||||
} else { // 根节点
|
} else { // 根节点
|
||||||
route.component = loadView(route.component)
|
route.component = loadView(route.component)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user