husq
2023-09-19 f4cb15adb08fa2e142918a5c534c383fad238aa6
src/components/GMap.vue
@@ -953,16 +953,22 @@
    }
    // 飞行设备关闭
    const closeFly = async () => {
      const videoId = deviceInfo.dock.basic_osd?.sub_device?.device_sn + '/' + aircraSelected.value + '/' + 'normal-0'
      aircraftList.value.forEach(item => {
        const videoId = deviceInfo.dock.basic_osd?.sub_device?.device_sn + '/' + item.value + '/' + 'normal-0'
        stopLivestream({
          video_id: videoId
        }).then(res => {
          console.log(res, 'res')
          if (res.code === 0) {
            aircraftUrl.value = ''
          }
        }).catch(e => {
          console.log(e, 'errrrrrrrrrrrrrr')
        })
      })
      // const videoId = deviceInfo.dock.basic_osd?.sub_device?.device_sn + '/' + aircraSelected.value + '/' + 'normal-0'
      aircraftList.value = []
      aircraSelected.value = ''
      stopLivestream({
        video_id: videoId
      }).then(res => {
        if (res.code === 0) {
          aircraftUrl.value = ''
        }
      })
    }
    watch(() => store.state.deviceStatusEvent,
      data => {