mirror of
https://github.com/dataease/dataease.git
synced 2026-05-18 17:58:11 +08:00
feat: 系统管理只有一个子菜单也显示左侧菜单
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user