From d9ebddc66952b84191b1dabfed638acaba383e2c Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Sat, 11 Jul 2020 09:42:25 +0800
Subject: [PATCH] 防止切换权限用户后登录出现404

---
 sql/ry_20200711.sql                       |    2 +-
 ruoyi-ui/src/layout/components/Navbar.vue |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue
index 22427a8..db46ec5 100644
--- a/ruoyi-ui/src/layout/components/Navbar.vue
+++ b/ruoyi-ui/src/layout/components/Navbar.vue
@@ -94,7 +94,7 @@
         type: 'warning'
       }).then(() => {
         this.$store.dispatch('LogOut').then(() => {
-          location.reload()
+          location.href = '/index';
         })
       })
     }
diff --git a/sql/ry_20200702.sql b/sql/ry_20200711.sql
similarity index 99%
rename from sql/ry_20200702.sql
rename to sql/ry_20200711.sql
index 95b31a1..407e317 100644
--- a/sql/ry_20200702.sql
+++ b/sql/ry_20200711.sql
@@ -120,7 +120,7 @@
 -- ----------------------------
 -- 初始化-角色信息表数据
 -- ----------------------------
-insert into sys_role values('1', '系统管理员',  'admin',  1, 1, '0', '0', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '系统管理员');
+insert into sys_role values('1', '超级管理员',  'admin',  1, 1, '0', '0', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '超级管理员');
 insert into sys_role values('2', '普通角色',    'common', 2, 2, '0', '0', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '普通角色');
 
 

--
Gitblit v1.9.3