From 81b5bedfa358843c99098f690458f17d5b6ba352 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 12 十月 2024 10:21:40 +0800
Subject: [PATCH] #

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

diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx
index a0688d7..2e50171 100644
--- a/zy-acs-flow/src/map/MapPage.jsx
+++ b/zy-acs-flow/src/map/MapPage.jsx
@@ -81,7 +81,7 @@
         handleResize();
         window.addEventListener('resize', handleResize);
 
-        notify('Welcome to Rcs', 'info');
+        notify.info('Welcome to Rcs');
 
         return () => {
             if (websocket) {
@@ -92,6 +92,11 @@
             window.removeEventListener('resize', handleResize);
             Tool.patchRaLayout('');
         };
+    }, [])
+
+    useEffect(() => {
+        player.setTheme(themeMode);
+        Tool.setThemeMode(themeMode);
     }, [themeMode])
 
     const switchMode = (mode) => {
@@ -200,7 +205,7 @@
                     padding: '0 16px',
                     height: '64px',
                     flexShrink: 0, // keep height
-                    zIndex: 200
+                    zIndex: 200,
                 }}
             >
                 <TextField

--
Gitblit v1.9.1