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/store/modules/permission.js |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index ce2314a..1b58c6f 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -24,12 +24,7 @@
       state.defaultRoutes = constantRoutes.concat(routes)
     },
     SET_TOPBAR_ROUTES: (state, routes) => {
-      // 椤堕儴瀵艰埅鑿滃崟榛樿娣诲姞缁熻鎶ヨ〃鏍忔寚鍚戦椤�
-      const index = [{
-        path: 'index',
-        meta: { title: '缁熻鎶ヨ〃', icon: 'dashboard' }
-      }]
-      state.topbarRouters = routes.concat(index);
+      state.topbarRouters = routes
     },
     SET_SIDEBAR_ROUTERS: (state, routes) => {
       state.sidebarRouters = routes

--
Gitblit v1.9.3