forked from github/dataease
feat: 系统管理只有一个子菜单也显示左侧菜单
This commit is contained in:
parent
4207e13738
commit
9b638f0a1a
@ -211,7 +211,7 @@ export default {
|
||||
// 设置侧边栏的显示和隐藏
|
||||
setSidebarHide(route) {
|
||||
// if (!route.children || route.children.length === 1) {
|
||||
if (!route.children || this.showChildLength(route) === 1) {
|
||||
if (route.name !== 'system' && (!route.children || this.showChildLength(route) === 1)) {
|
||||
this.$store.dispatch('app/toggleSideBarHide', true)
|
||||
} else {
|
||||
this.$store.dispatch('app/toggleSideBarHide', false)
|
||||
|
Loading…
Reference in New Issue
Block a user