From 822d9d9494cc575c1bcdbaa51d68da817236c0b8 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期六, 12 十月 2024 08:13:56 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/MapPage.jsx | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx index a0688d7..b05430e 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) => { -- Gitblit v1.9.1