From 0254b3caa25819d038754baa58b03824303b5fa7 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期日, 07 四月 2024 08:35:55 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/index.jsx | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/index.jsx b/zy-asrs-flow/src/pages/map/index.jsx
index 987f5d2..a1c3cb2 100644
--- a/zy-asrs-flow/src/pages/map/index.jsx
+++ b/zy-asrs-flow/src/pages/map/index.jsx
@@ -105,10 +105,7 @@
websocket = new WebSocketClient('/ws/map/websocket');
websocket.connect();
-
- setInterval(() => {
- websocket.sendMessage('asds')
- }, 1000)
+ websocket.onMessage = Utils.updateMapStatusInRealTime;
const handleResize = () => {
setWindowSize({
@@ -131,7 +128,6 @@
}, 200)
}
initialize();
- console.log(1);
}, []);
// resize
--
Gitblit v1.9.1