From fa0045dec30afff824b1efdafeb437a7b4f21c7e Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Thu, 16 Jan 2025 10:08:16 +0800
Subject: [PATCH] 打印ws信息
---
src/api/device-cmd/index.ts | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/api/device-cmd/index.ts b/src/api/device-cmd/index.ts
index 8e48e53..1d6fc43 100644
--- a/src/api/device-cmd/index.ts
+++ b/src/api/device-cmd/index.ts
@@ -1,3 +1,12 @@
+/*
+ * @Author: GuLiMmo 2820890765@qq.com
+ * @Date: 2024-03-12 17:59:03
+ * @LastEditors: GuLiMmo 2820890765@qq.com
+ * @LastEditTime: 2024-08-28 14:25:29
+ * @FilePath: /drone-web/src/api/device-cmd/index.ts
+ * @Description:
+ * Copyright (c) 2024 by GuLiMmo, All Rights Reserved.
+ */
import request, { IWorkspaceResponse } from '/@/api/http/request'
import { DeviceCmd, DeviceCmdItemAction } from '/@/types/device-cmd'
@@ -18,9 +27,6 @@
*/
// /control/api/v1/devices/{dock_sn}/jobs/{service_identifier}
export async function postSendCmd (params: SendCmdParams, body?: PostSendCmdBody): Promise<IWorkspaceResponse<{}>> {
- const postBody = body || {}
- const resp = await request.post(`${CMD_API_PREFIX}/devices/${params.dock_sn}/jobs/${params.device_cmd}`, {
- ...postBody
- })
+ const resp = await request.post(`${CMD_API_PREFIX}/devices/${params.dock_sn}/jobs/${params.device_cmd}`, body)
return resp.data
}
--
Gitblit v1.9.3