From 70a47fd91119a6b40147b8bf094ec70f09a998e3 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 12 十月 2024 14:35:34 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/MapPage.jsx |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx
index cf185ce..613becc 100644
--- a/zy-acs-flow/src/map/MapPage.jsx
+++ b/zy-acs-flow/src/map/MapPage.jsx
@@ -66,9 +66,10 @@
             Tool.setMapContainer(player.mapContainer);
             Tool.setThemeMode(themeMode);
             Http.setNotify(notify);
+            Http.setMapContainer(player.mapContainer);
             // websocket = new WebSocketClient('/ws/map/websocket');
 
-            await Http.fetchMapData(0);
+            await Http.fetchMapData();
             // websocket.connect();
             // websocket.onMessage = (data) => {
             //     Tool.updateMapStatusInRealTime(data, () => curFloorRef.current, setCurSPrite);
@@ -260,7 +261,7 @@
                             label="page.map.action.save"
                             variant="contained"
                             onConfirm={() => {
-                                Http.saveMapData(curZone, mapContainer);
+                                Http.saveMapData(curZone);
                             }}
                         />
                     </>

--
Gitblit v1.9.1