Browse Source

防止切换权限用户后登录出现404

tags/v2.1
RuoYi 5 years ago
parent
commit
d9ebddc669
  1. 2
      ruoyi-ui/src/layout/components/Navbar.vue
  2. 2
      sql/ry_20200711.sql

2
ruoyi-ui/src/layout/components/Navbar.vue

@ -94,7 +94,7 @@ export default { @@ -94,7 +94,7 @@ export default {
type: 'warning'
}).then(() => {
this.$store.dispatch('LogOut').then(() => {
location.reload()
location.href = '/index';
})
})
}

2
sql/ry_20200702.sql → sql/ry_20200711.sql

@ -120,7 +120,7 @@ create table sys_role ( @@ -120,7 +120,7 @@ create table sys_role (
-- ----------------------------
-- 初始化-角色信息表数据
-- ----------------------------
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', '普通角色');
Loading…
Cancel
Save