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

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

diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx
index 7e9cf85..9ab4030 100644
--- a/zy-acs-flow/src/map/MapPage.jsx
+++ b/zy-acs-flow/src/map/MapPage.jsx
@@ -70,6 +70,12 @@
             // websocket = new WebSocketClient('/ws/map/websocket');
 
             await Http.fetchMapData();
+
+            setTimeout(() => {
+                player.adaptScreen();
+                notify.info('Welcome to Rcs');
+            }, 200)
+
             // websocket.connect();
             // websocket.onMessage = (data) => {
             //     Tool.updateMapStatusInRealTime(data, () => curFloorRef.current, setCurSPrite);
@@ -87,8 +93,6 @@
         };
         handleResize();
         window.addEventListener('resize', handleResize);
-
-        notify.info('Welcome to Rcs');
 
         return () => {
             if (websocket) {

--
Gitblit v1.9.1