From 5808f76456ca0d40de5074f132b73a5a488e3e13 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 09 Dec 2025 09:12:03 +0800
Subject: [PATCH] Merge branch 'refs/heads/feature/v9.0/9.0.1' into test

---
 src/api/device-setting/index.js |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/api/device-setting/index.js b/src/api/device-setting/index.js
index c0e6db9..a1bef21 100644
--- a/src/api/device-setting/index.js
+++ b/src/api/device-setting/index.js
@@ -14,21 +14,15 @@
 
 const workspaceId = localStorage.getItem(ELocalStorageKey.WorkspaceId) || ''
 
-export const putDeviceProps = (deviceSn, body) => {
+export const putDeviceProps = (deviceSn, workspaceId, body) => {
+  console.log(deviceSn, workspaceId, body, '8888')
   return request({
     url: `/drone-device-core/manage/api/v1/devices/${workspaceId}/devices/${deviceSn}/property`,
     method: 'put',
-    body,
+    data: body,
   })
 }
 
-export const putDevicePropsNew = (deviceSn, body, workspaceId) => {
-  return request({
-    url: `/drone-device-core/manage/api/v1/devices/${workspaceId}/devices/${deviceSn}/property`,
-    method: 'put',
-    body,
-  })
-}
 /**
  * 设置调色盘
  * @param {机场编码} deviceSn 

--
Gitblit v1.9.3