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,