优化客户端展示

This commit is contained in:
龙运模
2024-11-22 19:59:18 +08:00
parent c5730240ac
commit c9ea49826c
18 changed files with 531 additions and 27 deletions
+6 -2
View File
@@ -53,10 +53,14 @@ axios.interceptors.response.use(
done();
},
}).then(() => {
closeSock(true);
try {
closeSock(true);
}catch(err) {
console.log(err)
}
tool.data.clear();
tool.cookie.remove("TOKEN");
router.replace({ path: "/login" });
router.replace({path: "/login"});
})
.catch(() => {});
}
+1
View File
@@ -114,6 +114,7 @@ function sendSock(agentData) {
function closeSock(active) {
lockReconnect = active; // 主动断开时不重连
websocket.close();
return true
}
// 数据接收