diff --git a/src/project/weiyang/AppMine/AppMine.vue b/src/project/weiyang/AppMine/AppMine.vue index f525fb7..13ef44c 100644 --- a/src/project/weiyang/AppMine/AppMine.vue +++ b/src/project/weiyang/AppMine/AppMine.vue @@ -201,11 +201,15 @@ export default { content: "是否要退出登录", success: res => { if (res.confirm) { - this.$store.commit('logout') - this.$toast('退出成功'); - setTimeout(() => { - this.getAuth(); - }, 500) + this.$instance.delete(`/auth/token/logout`).then(res=> { + if(res.code == 0) { + this.$store.commit('logout') + this.$toast('退出成功'); + setTimeout(() => { + this.getAuth(); + }, 500) + } + }) } } })