无人机管理后台前端(已迁走)
rjg
2025-04-11 a4e972e5a0353307074abc9bbebb1ca56f802a9f
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,
  });
};