From 53a421cd1f905b8640e9d5c54e2f7de45947b201 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 14 Nov 2023 17:33:46 +0800
Subject: [PATCH] 图斑飞行接口修改

---
 src/components/g-map/DroneControlPanel.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/components/g-map/DroneControlPanel.vue b/src/components/g-map/DroneControlPanel.vue
index 549ed53..ec3722b 100644
--- a/src/components/g-map/DroneControlPanel.vue
+++ b/src/components/g-map/DroneControlPanel.vue
@@ -496,6 +496,7 @@
     lon: props.deviceInfo.dock.basic_osd.longitude,
     lat: props.deviceInfo.dock.basic_osd.latitude
   })
+  const deviceSn = props.deviceInfo.dock.basic_osd.sub_device?.device_sn
   const jsonData = await parseJsonFile('../src/assets/jsonData/图斑_FeaturesToJSON(1).json')
   const sn = props.sn
   const features = jsonData.features
@@ -514,7 +515,7 @@
     list.push(areaList)
   })
 
-  flyByArea(sn, dockPoint, list, radius).then(res => {
+  flyByArea(sn, dockPoint, list, radius, deviceSn).then(res => {
     console.log(res, '----------------')
   })
 }

--
Gitblit v1.9.3