优化ws退出问题
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user