feat: 系统管理只有一个子菜单也显示左侧菜单

This commit is contained in:
fit2cloud-chenyw 2021-06-17 11:08:04 +08:00
parent 4207e13738
commit 9b638f0a1a

View File

@ -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)