解决只有一个菜单时无法显示目录

Signed-off-by: zhang.xionghui <13834222683@163.com>
pull/2/head
zhang.xionghui 2023-01-11 02:35:38 +00:00 committed by Gitee
parent 0bbf45ce51
commit c9d242c7e1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
} else {
route.component = ParentView
}
// 解决只有一个菜单时无法显示目录
route.alwaysShow = true
} else { // 根节点
route.component = loadView(route.component)
}