|
@@ -146,6 +146,14 @@ export default {
|
|
|
},
|
|
|
logout() {
|
|
|
this.$util.loading.handleLoading(true);
|
|
|
+ this.$store.state.token = '';
|
|
|
+ this.$store.state.userInfo = {};
|
|
|
+ this.loginForm = {
|
|
|
+ userName: '',
|
|
|
+ password: '',
|
|
|
+ clientId: this.$constant.serviceId,
|
|
|
+ };
|
|
|
+ localStorage.clear();
|
|
|
this.$store.commit('resetState', {});
|
|
|
this.$util.loading.handleLoading(false);
|
|
|
this.judgeLogin();
|