#
vincentlu
1 天以前 3c74b6ffe9e246c66d44f2c6be463a630328d30a
zy-acs-flow/src/map/MapPage.jsx
@@ -68,7 +68,9 @@
    });
    const handleResize = () => {
        if (!contentRef) { return; }
        if (!contentRef.current || !player) {
            return;
        }
        const width = contentRef.current.offsetWidth;
        const height = contentRef.current.offsetHeight;
        player.resize(width, height);
@@ -125,6 +127,9 @@
    }, [sidebarOpen]);
    useEffect(() => {
        if (!player) {
            return;
        }
        player.setTheme(themeMode);
        Tool.setThemeMode(themeMode);
    }, [themeMode])