From 92484fc9421bb854cf341bad4829b3275ad7bc09 Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Fri, 22 May 2026 15:03:43 +0800 Subject: [PATCH] xx --- src/api/device.ts | 11 ++++++++++- src/components/devices/DeviceOverviewPage.tsx | 4 +++- src/pages/Devices.tsx | 1 - 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/api/device.ts b/src/api/device.ts index ea83dc6..bd79a5f 100644 --- a/src/api/device.ts +++ b/src/api/device.ts @@ -122,7 +122,7 @@ export function postFlightCommmand(data) { //切换相机 -export function changeCamera(data) { +export function changeCameragateway(data) { return request({ url: '/iot/UAV/changeCamera', method: 'post', @@ -130,6 +130,15 @@ export function changeCamera(data) { }) } +//切换飞机摄像头/iot/UAV/changeLens +export function changeCameraPlane(data) { + return request({ + url: '/iot/UAV/changeLens', + method: 'post', + data + }) +} + //直播心跳 export function postLiveHeartbeat(data) { diff --git a/src/components/devices/DeviceOverviewPage.tsx b/src/components/devices/DeviceOverviewPage.tsx index f44753e..407b25f 100644 --- a/src/components/devices/DeviceOverviewPage.tsx +++ b/src/components/devices/DeviceOverviewPage.tsx @@ -242,7 +242,9 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll,