From 3eb5cea015d625d84920bb74f953fd2a58018966 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Fri, 13 Oct 2023 09:47:33 +0800
Subject: [PATCH] 取消关闭直播

---
 src/components/GMap.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/components/GMap.vue b/src/components/GMap.vue
index 693bfce..5fd3dad 100644
--- a/src/components/GMap.vue
+++ b/src/components/GMap.vue
@@ -870,6 +870,13 @@
     // 关闭窗口
     const closeOsdWindow = () => {
       store.commit('SET_OSD_VISIBLE_INFO', false)
+      showAircraft.value = false
+      aircrafIndex.value = -1
+      aircraftUrl.value = ''
+      showMonitor.value = false
+      airPortUrl.value = ''
+      airPortOption.value = false
+      showMonitor.value = false
     }
 
     // 打开监控权限
@@ -878,7 +885,7 @@
       if (showMonitor.value) {
         loadVideo()
       } else {
-        onClose()
+        // onClose()
       }
     }
     // 打开飞机监控
@@ -894,7 +901,7 @@
       if (showAircraft.value) {
         loadDroneVideo(type)
       } else {
-        closeFly()
+        // closeFly()
       }
     }
     // 加载该设备的视频信息
@@ -1039,7 +1046,6 @@
       const videoId = deviceInfo.dock.basic_osd?.sub_device?.device_sn + '/' + aircraSelected.value + '/' + 'normal-0'
       const streamId = deviceInfo.dock.basic_osd?.sub_device?.device_sn + '-' + aircraSelected.value + '-' + 'normal-0'
       const liveURL = config.rtmpURL + streamId
-      console.log('飞机设备播放事件触发')
       await startLivestream({
         url: liveURL,
         video_id: videoId,

--
Gitblit v1.9.3