From bdc6d8733ae6eeb3a9762e77dbabe21441336474 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 13 Mar 2025 17:20:36 +0800
Subject: [PATCH] 更新分享

---
 src/views/hooks/droneFly.ts |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/src/views/hooks/droneFly.ts b/src/views/hooks/droneFly.ts
index 4990445..3cfebf3 100644
--- a/src/views/hooks/droneFly.ts
+++ b/src/views/hooks/droneFly.ts
@@ -80,11 +80,11 @@
             ssLinePath
           )
           let domain = sessionStorage.getItem('domain')
-          if (domain !== '0') {
-            addFlyLaser(
-              deviceInfo.payloads[0]
-            )
-          }
+          // if (domain !== '0') {
+          //   addFlyLaser(
+          //     deviceInfo.payloads[0]
+          //   )
+          // }
           setelCamera(
             viewDroneInfo.longitude,
             viewDroneInfo.latitude,
@@ -109,7 +109,6 @@
         }
       } else {
         if (deviceInfo.mode_code && [3, 4, 5, 9, 10, 17].includes(deviceInfo.mode_code)) {
-          // 暂时把视锥代码注释掉
           initCreateFrustum(deviceInfo, viewDroneInfo)
           addFlyGltf(
             viewDroneInfo.longitude,
@@ -122,11 +121,11 @@
             ssLinePath
           )
           let domain = sessionStorage.getItem('domain')
-          if (domain !== '0') {
-            addFlyLaser(
-              deviceInfo.payloads[0]
-            )
-          }
+          // if (domain !== '0') {
+          //   addFlyLaser(
+          //     deviceInfo.payloads[0]
+          //   )
+          // }
         }
       }
       const imgRightBlue = new URL('@/assets/images/arrow-right-pink.png', import.meta.url).href
@@ -149,7 +148,7 @@
         })
       }
       
-      if (data.deviceInfo[data.currentSn].mode_code && [3, 4, 5, 9, 10, 17].includes(deviceInfo.mode_code)) {
+      if (data.deviceInfo[data.currentSn].mode_code && [3, 4, 5, 9, 10].includes(deviceInfo.mode_code)) {
         if (switchSaving) return (switchSaving = false)
         const newPositions = globalCesium.Cartesian3.fromDegrees(
           data.deviceInfo[data.currentSn].longitude,

--
Gitblit v1.9.3