From 66ab394f977a2fcf4b4fc9334829fc5bb171296f Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 09 十月 2024 16:45:28 +0800
Subject: [PATCH] #

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

diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx
index c67fcf4..69c9801 100644
--- a/zy-acs-flow/src/map/MapPage.jsx
+++ b/zy-acs-flow/src/map/MapPage.jsx
@@ -23,6 +23,7 @@
 import * as Tool from './tool';
 import { NotificationProvider, useNotification } from './Notification';
 import Device from "./Device";
+import * as Http from './http';
 
 let player;
 
@@ -49,6 +50,9 @@
             setMapContainer(player.mapContainer);
             Tool.setApp(player.app);
             Tool.setMapContainer(player.mapContainer);
+            Http.setNotify(notify);
+
+            await Http.fetchMapData(0);
 
         }
         initialize();
@@ -59,6 +63,10 @@
             const height = contentRef.current.offsetHeight;
 
             player.resize(width, height);
+            if (mode === MapMode.MOVABLE_MODE) {
+                console.log('aa');
+                player.showGridLines();
+            }
         };
         handleResize();
         window.addEventListener('resize', handleResize);

--
Gitblit v1.9.1