优化ws退出问题

This commit is contained in:
龙运模 2024-09-21 10:41:44 +08:00
parent f1f6f16b82
commit 3fcd88da5c

View File

@ -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(() => {