diff --git a/pages/my/setting.vue b/pages/my/setting.vue index 7e5a692..8cfced3 100644 --- a/pages/my/setting.vue +++ b/pages/my/setting.vue @@ -136,8 +136,6 @@ }) }, logout() { - // 先解绑,如果当前账号的绑定状态relieveStatus已经为true了,那么就先解绑,为false就直接退出登录 - this.relieveLogin(this.relieveStatus) this.clearShow=true; }, updateHeadImg() { @@ -194,6 +192,8 @@ }) }, confirmClear(){ + // 先解绑,如果当前账号的绑定状态relieveStatus已经为true了,那么就先解绑,为false就直接退出登录 + this.relieveLogin(this.relieveStatus) let that = this; that.$store.dispatch("LogOut").then(rs =>{ that.clearShow=false;