| | |
| | | } |
| | | // 飞行设备关闭 |
| | | 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 => { |