chenyao
2025-03-13 bdc6d8733ae6eeb3a9762e77dbabe21441336474
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,