|
|
@@ -286,10 +286,14 @@ export default defineComponent({
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
const gatewayInfo = store.state.deviceState.gatewayInfo;
|
|
|
- for (const key in gatewayInfo) {
|
|
|
+ for (const key in gatewayInfo) {// 清除上次绘制的遥控器图标
|
|
|
deviceTsaUpdateHook.removeDeviceMarker(key)
|
|
|
}
|
|
|
- root.$map.destroy()
|
|
|
+ const dockInfo = store.state.deviceState.dockInfo;
|
|
|
+ for (const sn in dockInfo) {// 清除上次绘制的机场图标
|
|
|
+ deviceTsaUpdateHook.removeDeviceMarker(sn);
|
|
|
+ }
|
|
|
+ root.$map.destroy();
|
|
|
})
|
|
|
|
|
|
const { getDrawFlightAreaCallback, onFlightAreaDroneLocationWs } = useFlightArea()
|