优化ws退出问题
This commit is contained in:
parent
f1f6f16b82
commit
3fcd88da5c
@ -200,6 +200,8 @@
|
||||
}).then(async () => {
|
||||
const res = await this.$API.system.user.logout.post();
|
||||
if(res.code == 200){
|
||||
this.$TOOL.data.clear();
|
||||
this.$socketApi.closeSock(true);
|
||||
this.$router.replace({path: '/login'});
|
||||
}
|
||||
}).catch(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user