|
@@ -160,13 +160,18 @@
|
|
|
});
|
|
|
},
|
|
|
loginOut() {
|
|
|
+ // this.$store.state.vuex_hasLogin = false
|
|
|
+ // this.$store.state.vuex_wxinfo = null
|
|
|
+ // this.$store.state.vuex_token = ''
|
|
|
+ // this.$store.state.vuex_user = null
|
|
|
+ this.$u.vuex('vuex_hasLogin', false);
|
|
|
+ this.$u.vuex('vuex_wxinfo', null);
|
|
|
+ this.$u.vuex('vuex_token', '');
|
|
|
+ this.$u.vuex('vuex_user', null);
|
|
|
+ this.userInfo = []
|
|
|
+ this.code = ''
|
|
|
+ localStorage.clear()
|
|
|
setTimeout(() => {
|
|
|
- this.$store.state.vuex_hasLogin = false
|
|
|
- this.$store.state.vuex_token = ''
|
|
|
- this.$store.state.vuex_user = null
|
|
|
- this.userInfo = []
|
|
|
- this.code = ''
|
|
|
- localStorage.clear()
|
|
|
this.logoutPop = false
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/center/phoneLogin/phoneLogin'
|