From 8892201095e50f28f4b166fddd752ebd6788d201 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 23 Jul 2024 15:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E5=A4=AE=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/weiyang/AppMine/AppMine.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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) + } + }) } } })