| | |
| | | import { ElMessage } from 'element-plus'; |
| | | |
| | | import { putDeviceProps } from '@/api/device-setting'; |
| | | import { putDeviceProps, putDevicePropsNew } from '@/api/device-setting'; |
| | | import { |
| | | DeviceSettingKeyEnum, |
| | | ObstacleAvoidanceStatusEnum, |
| | |
| | | } |
| | | |
| | | // 设置设备属性 |
| | | 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; |
| | | } |