未央退出登录

This commit is contained in:
liuye
2024-07-23 15:48:15 +08:00
parent 325de69bf3
commit 8892201095

View File

@@ -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)
}
})
}
}
})