소스 검색

ws时,删除最后一个实时轨迹,会清空图层问题

CzRger 5 달 전
부모
커밋
8448967cd5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/stores/ship-map/ship-map.ts

+ 1 - 0
src/stores/ship-map/ship-map.ts

@@ -127,6 +127,7 @@ export const useShipMapStore = defineStore('shipMap', () => {
               state.ws.instance = null
               state.map.removeLayer(state.ws.layerShip)
               state.ws.layerShip = null
+              switchZoom()
             } else {
               initWebSocket()
             }