From d5d683c7720d494666b81f4c280d348a30722678 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 18 三月 2024 10:12:07 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/index.jsx |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/index.jsx b/zy-asrs-flow/src/pages/map/index.jsx
index a32ad2b..904021e 100644
--- a/zy-asrs-flow/src/pages/map/index.jsx
+++ b/zy-asrs-flow/src/pages/map/index.jsx
@@ -127,7 +127,6 @@
         if (!mapContainer && !dataFetched) {
             return;
         }
-
         switch (model) {
             case MapModel.OBSERVER_MODEL:
 
@@ -137,6 +136,7 @@
                 player.activateMapEvent(null);
 
                 Utils.removeSelectedEffect();
+                setCurSPrite(null);
                 setDeviceVisible(false);
                 setSettingsVisible(false);
 
@@ -264,13 +264,24 @@
                                         <Button
                                             className='map-header-button'
                                             size={'large'}
-                                            onClick={() => {
-                                                Utils.fetchMapData(intl);
+                                            onClick={async () => {
+                                                await Utils.fetchMapData(intl);
+
+                                                player.hideGridlines();
+                                                player.hideStarryBackground();
+
+                                                player.activateMapEvent(null);
 
                                                 Utils.removeSelectedEffect();
+                                                setCurSPrite(null);
                                                 setDeviceVisible(false);
                                                 setSettingsVisible(false);
                                                 setDrawerVisible(false);
+
+                                                mapContainer.children.forEach(child => {
+                                                    Utils.viewFeature(child, setCurSPrite);
+                                                })
+
                                             }}
                                         >
                                             <FormattedMessage id='map.load' defaultMessage='鍔犺浇鍦板浘' />

--
Gitblit v1.9.1