未央退出登录
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user