未央退出登录
This commit is contained in:
@@ -201,11 +201,15 @@ export default {
|
|||||||
content: "是否要退出登录",
|
content: "是否要退出登录",
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
this.$store.commit('logout')
|
this.$instance.delete(`/auth/token/logout`).then(res=> {
|
||||||
this.$toast('退出成功');
|
if(res.code == 0) {
|
||||||
setTimeout(() => {
|
this.$store.commit('logout')
|
||||||
this.getAuth();
|
this.$toast('退出成功');
|
||||||
}, 500)
|
setTimeout(() => {
|
||||||
|
this.getAuth();
|
||||||
|
}, 500)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user