|
@@ -228,7 +228,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
onCommand(command) {
|
|
onCommand(command) {
|
|
|
if (command === 'logout') {
|
|
if (command === 'logout') {
|
|
|
- localStorage.removeItem('token');
|
|
|
|
|
|
|
+ sessionStorage.removeItem('token');
|
|
|
this.$store.commit('updateUserInfo', null);
|
|
this.$store.commit('updateUserInfo', null);
|
|
|
this.$store.commit('updateOrganization', null);
|
|
this.$store.commit('updateOrganization', null);
|
|
|
this.$router.replace('/login');
|
|
this.$router.replace('/login');
|
|
@@ -261,7 +261,7 @@ export default {
|
|
|
console.log(res);
|
|
console.log(res);
|
|
|
this.pwdLoading = false;
|
|
this.pwdLoading = false;
|
|
|
this.showPwdDialog = false;
|
|
this.showPwdDialog = false;
|
|
|
- localStorage.removeItem('token');
|
|
|
|
|
|
|
+ sessionStorage.removeItem('token');
|
|
|
this.$store.commit('updateUserInfo', null);
|
|
this.$store.commit('updateUserInfo', null);
|
|
|
this.$router.replace('/login');
|
|
this.$router.replace('/login');
|
|
|
this.$message.success('修改成功,请重新登录');
|
|
this.$message.success('修改成功,请重新登录');
|