Skip to content

Commit f84898a

Browse files
YunaiVgitee-org
authored andcommitted
!369 解决只有一个菜单时无法显示目录
Merge pull request !369 from zhang.xionghui/master
2 parents 31e0916 + 34e04ef commit f84898a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/store/modules/permission.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
7373
} else {
7474
route.component = ParentView
7575
}
76+
// 解决只有一个菜单时无法显示目录
77+
route.alwaysShow = true
7678
} else { // 根节点
7779
route.component = loadView(route.component)
7880
}

0 commit comments

Comments
 (0)