无人机管理后台前端(已迁走)
rain
2025-04-12 4c0ce06dbc18a576f84aa69d67a7dfbe030d0b60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * @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,
  });
};