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

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

No files matched your search

+2 -1
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