#
vincentlu
6 天以前 f43a65438cbfb5c11675bea8b643de8e0770f52b
zy-acs-flow/src/map/MapPage.jsx
@@ -8,7 +8,7 @@
    useTheme,
    Fab,
} from '@mui/material';
import { MAP_MODE, MAP_DEFAULT_ROTATION } from "./constants";
import { MAP_MODE, MAP_DEFAULT_ROTATION, setMapPreferences } from "./constants";
import Player from './player';
import * as Tool from './tool';
import { NotificationProvider, useNotification } from './Notification';
@@ -85,6 +85,7 @@
            Tool.setThemeMode(themeMode);
            Http.setNotify(notify);
            Http.setMapContainer(player.mapContainer);
            await Http.fetchMapPreferences(curZone, setMapPreferences);
            websocket = new WebSocketClient('/ws/map/websocket');
            await Http.fetchMapData(curZone, setRcsStatus, setCurSprite);