From e434bf1fdb87848cd7ae802e2dca689506a3a8c6 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 29 Aug 2025 18:30:56 +0800
Subject: [PATCH] feat:更新设备管理

---
 src/views/device/components/use-device-setting.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/device/components/use-device-setting.js b/src/views/device/components/use-device-setting.js
index ede8603..b767d76 100644
--- a/src/views/device/components/use-device-setting.js
+++ b/src/views/device/components/use-device-setting.js
@@ -1,6 +1,6 @@
 import { ElMessage } from 'element-plus';
 
-import { putDeviceProps } from '@/api/device-setting';
+import { putDeviceProps, putDevicePropsNew } from '@/api/device-setting';
 import {
   DeviceSettingKeyEnum,
   ObstacleAvoidanceStatusEnum,
@@ -49,9 +49,9 @@
   }
 
   // 设置设备属性
-  async function setDeviceProps(sn, body) {
+  async function setDeviceProps(sn, body, workspaceId) {
     try {
-      const { code, message: msg } = await putDeviceProps(sn, body);
+      const { code, message: msg } = await putDevicePropsNew(sn, body, workspaceId);
       if (code === 0) {
         return true;
       }

--
Gitblit v1.9.3