浏览代码

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()
             }