From d58639159104c0cb71c6c907b2f7cfe6b33a3655 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 15 十月 2024 17:07:24 +0800
Subject: [PATCH] #

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

diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx
index 314f02b..733339e 100644
--- a/zy-acs-flow/src/map/MapPage.jsx
+++ b/zy-acs-flow/src/map/MapPage.jsx
@@ -49,6 +49,7 @@
     const [mapContainer, setMapContainer] = useState(null);
 
     const [mode, setMode] = useState(MAP_MODE.OBSERVER_MODE);
+    const [dataFetched, setDataFetched] = useState(false);
     const [insightVisible, setInsightVisible] = useState(false);
     const [deviceVisible, setDeviceVisible] = useState(false);
     const [settingsVisible, setSettingsVisible] = useState(false);
@@ -91,6 +92,7 @@
             setTimeout(() => {
                 player.adaptScreen();
                 notify.info(translate('page.map.welcome'));
+                setDataFetched(true);
             }, 200)
         }
         initialize();
@@ -252,6 +254,7 @@
                 <MapSearch
                     mode={mode}
                     setMode={setMode}
+                    dataFetched={dataFetched}
                     curZone={curZone}
                     setSpriteSettings={setSpriteSettings}
                 />

--
Gitblit v1.9.1