/* * @Author: shuishen 1109946754@qq.com * @Date: 2024-09-13 20:01:59 * @LastEditors: shuishen 1109946754@qq.com * @LastEditTime: 2024-09-13 20:08:09 * @FilePath: \drone-web-manage\src\api\device-setting\index.js * @Description: * * Copyright (c) 2024 by shuishen, All Rights Reserved. */ import request from '@/axios'; import { ELocalStorageKey } from '@/types'; const workspaceId = localStorage.getItem(ELocalStorageKey.WorkspaceId) || ''; export const putDeviceProps = (deviceSn, body) => { return request({ url: `/drone-device-core/manage/api/v1/devices/${workspaceId}/devices/${deviceSn}/property`, method: 'put', body, }); };