From 93caadaadb5472f4c368528f7f777d973bc55719 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期日, 06 三月 2022 09:00:47 +0800
Subject: [PATCH] 开启TopNav没有子菜单情况隐藏侧边栏

---
 src/layout/components/Settings/index.vue |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue
index a8c5132..d74045a 100644
--- a/src/layout/components/Settings/index.vue
+++ b/src/layout/components/Settings/index.vue
@@ -102,6 +102,7 @@
       value: val
     })
     if (!val) {
+      store.dispatch('app/toggleSideBarHide', false);
       store.commit("SET_SIDEBAR_ROUTERS", store.state.permission.defaultRoutes);
     }
   }

--
Gitblit v1.9.3