#
vincentlu
7 天以前 1c00a6204f96c1de50ec961470ecc6bbbf5bb433
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])