#
luxiaotao1123
2024-10-09 66ab394f977a2fcf4b4fc9334829fc5bb171296f
zy-acs-flow/src/map/MapPage.jsx
@@ -23,6 +23,7 @@
import * as Tool from './tool';
import { NotificationProvider, useNotification } from './Notification';
import Device from "./Device";
import * as Http from './http';
let player;
@@ -49,6 +50,9 @@
            setMapContainer(player.mapContainer);
            Tool.setApp(player.app);
            Tool.setMapContainer(player.mapContainer);
            Http.setNotify(notify);
            await Http.fetchMapData(0);
        }
        initialize();
@@ -59,6 +63,10 @@
            const height = contentRef.current.offsetHeight;
            player.resize(width, height);
            if (mode === MapMode.MOVABLE_MODE) {
                console.log('aa');
                player.showGridLines();
            }
        };
        handleResize();
        window.addEventListener('resize', handleResize);