From f414daa1d1362ed1bd22b79b5fec7b50a6833d5e Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Thu, 21 Sep 2023 09:33:37 +0800
Subject: [PATCH] 代码提交
---
src/components/GMap.vue | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/src/components/GMap.vue b/src/components/GMap.vue
index 93e0979..ba82548 100644
--- a/src/components/GMap.vue
+++ b/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 => {
--
Gitblit v1.9.3