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 | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/zy-acs-flow/src/map/MapPage.jsx b/zy-acs-flow/src/map/MapPage.jsx index 527f79d..b05430e 100644 --- a/zy-acs-flow/src/map/MapPage.jsx +++ b/zy-acs-flow/src/map/MapPage.jsx @@ -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