Sfoglia il codice sorgente

取消登录跳转到首页

gcz 1 anno fa
parent
commit
1324bd2ba2
1 ha cambiato i file con 3 aggiunte e 8 eliminazioni
  1. 3 8
      center/memberinfo.vue

+ 3 - 8
center/memberinfo.vue

@@ -104,15 +104,10 @@
 		},
 		methods: {
 			logOut(){
+				this.$u.vuex('vuex_member_info', {});
 				this.$u.vuex('vuex_user_info', {});
-				// uni.clearStorage();
-				this.getMemberInfo()
-				// uni.showToast({
-				// 	title:'清除完成,请手动重新进入小程序',
-				// 	icon:'none',
-				// 	complete() {
-				// 	}
-				// })
+				uni.$u.route('/pages/index/index')
+				// this.getMemberInfo()
 			},
 			getMemberInfo(){
 				this.$u.api.memberInfo({id:this.vuex_user_info.userid}).then(res=>{