Browse Source

优化登陆bug

master
陈裕财 2 years ago
parent
commit
bb5274a52f
  1. 4
      src/views/login/components/login.vue

4
src/views/login/components/login.vue

@ -326,10 +326,10 @@ export default {
} }
}, },
// //
rolesChecked(){
rolesChecked(){
var indexPath=sessionStorage.getItem("index-path"); var indexPath=sessionStorage.getItem("index-path");
if(!indexPath){ if(!indexPath){
indexPath="/"
indexPath=""
} }
if(this.userInfo.isSuperAdmin){ if(this.userInfo.isSuperAdmin){
location.replace(indexPath) location.replace(indexPath)

Loading…
Cancel
Save