Browse Source

fix the debugging parameters

v1.4.0
sean.zhou 2 years ago
parent
commit
a6d5406418
  1. 5
      src/api/device-cmd/index.ts

5
src/api/device-cmd/index.ts

@ -18,9 +18,6 @@ export interface PostSendCmdBody {
*/ */
// /control/api/v1/devices/{dock_sn}/jobs/{service_identifier} // /control/api/v1/devices/{dock_sn}/jobs/{service_identifier}
export async function postSendCmd (params: SendCmdParams, body?: PostSendCmdBody): Promise<IWorkspaceResponse<{}>> { 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}`, body)
const resp = await request.post(`${CMD_API_PREFIX}/devices/${params.dock_sn}/jobs/${params.device_cmd}`, {
...postBody
})
return resp.data return resp.data
} }

Loading…
Cancel
Save