From f4cb15adb08fa2e142918a5c534c383fad238aa6 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Tue, 19 Sep 2023 16:34:53 +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