#
luxiaotao1123
2024-03-18 d5d683c7720d494666b81f4c280d348a30722678
#
1个文件已修改
17 ■■■■ 已修改文件
zy-asrs-flow/src/pages/map/index.jsx 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/index.jsx
@@ -127,7 +127,6 @@
        if (!mapContainer && !dataFetched) {
            return;
        }
        switch (model) {
            case MapModel.OBSERVER_MODEL:
@@ -137,6 +136,7 @@
                player.activateMapEvent(null);
                Utils.removeSelectedEffect();
                setCurSPrite(null);
                setDeviceVisible(false);
                setSettingsVisible(false);
@@ -264,13 +264,24 @@
                                        <Button
                                            className='map-header-button'
                                            size={'large'}
                                            onClick={() => {
                                                Utils.fetchMapData(intl);
                                            onClick={async () => {
                                                await Utils.fetchMapData(intl);
                                                player.hideGridlines();
                                                player.hideStarryBackground();
                                                player.activateMapEvent(null);
                                                Utils.removeSelectedEffect();
                                                setCurSPrite(null);
                                                setDeviceVisible(false);
                                                setSettingsVisible(false);
                                                setDrawerVisible(false);
                                                mapContainer.children.forEach(child => {
                                                    Utils.viewFeature(child, setCurSPrite);
                                                })
                                            }}
                                        >
                                            <FormattedMessage id='map.load' defaultMessage='加载地图' />