From e1d37bd7784a80a1863cb59967d4cd375a4ff7a3 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Sat, 30 Aug 2025 14:58:14 +0800
Subject: [PATCH] feat:更新设备管理和注册管理

---
 src/api/device-setting/index.js |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/api/device-setting/index.js b/src/api/device-setting/index.js
index c0e6db9..3ccc262 100644
--- a/src/api/device-setting/index.js
+++ b/src/api/device-setting/index.js
@@ -15,20 +15,14 @@
 const workspaceId = localStorage.getItem(ELocalStorageKey.WorkspaceId) || ''
 
 export const putDeviceProps = (deviceSn, body) => {
+  console.log(deviceSn, body, workspaceId, '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