From 882f49144f56fa508f2b4acd823e6d05154c21a5 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期三, 07 十二月 2022 20:16:44 +0800
Subject: [PATCH] 修复closeSidebar这个方法定义的参数没有解构问题

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

diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue
index f7e2654..c2d1a74 100644
--- a/src/components/TopNav/index.vue
+++ b/src/components/TopNav/index.vue
@@ -141,6 +141,8 @@
   }
   if(routes.length > 0) {
     permissionStore.setSidebarRouters(routes);
+  } else {
+    appStore.toggleSideBarHide(true);
   }
   return routes;
 }

--
Gitblit v1.9.3