fix: 拓扑取网元状态改ws读取

This commit is contained in:
TsMask
2024-01-29 18:37:00 +08:00
parent cf944a67bd
commit d5f2ca71cf
3 changed files with 109 additions and 59 deletions

View File

@@ -166,7 +166,8 @@ export class WS {
console.warn('websocket unavailable');
return;
}
console.log(' readyState', this.ws.readyState);
// 非正常状态关闭
if (
this.ws.readyState === WebSocket.CLOSED ||
this.ws.readyState === WebSocket.CLOSING