feat:【IoT 物联网】初始化 IoT 固件详情页 100%(取消记录)

This commit is contained in:
YunaiV
2025-07-03 19:12:45 +08:00
parent b8abe77bfe
commit d1cbda5197
3 changed files with 21 additions and 15 deletions

View File

@@ -31,13 +31,8 @@ export const IoTOtaTaskRecordApi = {
return await request.get({ url: `/iot/ota/task/record/page`, params })
},
// 查询 OTA 任务记录详情
getOtaTaskRecord: async (id: number) => {
return await request.get({ url: `/iot/ota/task/record/get?id=` + id })
},
// 取消 OTA 任务记录
cancelOtaTaskRecord: async (id: number) => {
return await request.post({ url: `/iot/ota/task/record/cancel?id=` + id })
return await request.put({ url: `/iot/ota/task/record/cancel?id=` + id })
}
}