#
luxiaotao1123
2024-03-16 43fffc8b0d2ea88f379e8c72385bdfb42bb88108
#
1个文件已修改
5 ■■■■ 已修改文件
zy-asrs-flow/src/pages/map/index.jsx 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/index.jsx
@@ -84,7 +84,8 @@
    const prevCurSpriteRef = React.useRef();
    // init func
    React.useEffect(async () => {
    React.useEffect(() => {
        const initialize = async () => {
        player = new Player(mapRef.current, styles.dark, didClickSprite);
        setApp(player.app);
        setMapContainer(player.mapContainer);
@@ -104,6 +105,8 @@
        setTimeout(() => {
            player.adaptScreen();
        }, 200)
        }
        initialize();
    }, []);
    // resize