无人机管理后台前端(已迁走)
chenyao
2025-08-29 e434bf1fdb87848cd7ae802e2dca689506a3a8c6
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;
      }