This commit is contained in:
yanghang
2025-07-07 15:45:50 +08:00
parent 6d1965c231
commit 1de0d74010
3 changed files with 16 additions and 8 deletions
+2
View File
@@ -65,12 +65,14 @@ export default class WebSocketUtil {
console.log('收到WebSocket消息', JSON.parse(res.data) );
if(['0005', 'QQ0005'].includes(rtnCode)) {
clearInterval(this.reconnectTimer);
this.reconnectTimer = null
this.close()
goto_login_fun();
return
}
}else{
clearInterval(this.reconnectTimer); // 清除重连计时器
this.reconnectTimer = null
goto_login_fun();
return
}