完善前端WebSocket更新逻辑
This commit is contained in:
@@ -78,13 +78,13 @@ async function deleteDevice(id: string) {
|
||||
async function iotSendCommand(
|
||||
id: string,
|
||||
command: string,
|
||||
project: string,
|
||||
dept_id: string,
|
||||
device_type: string,
|
||||
) {
|
||||
return pyRequestClient.post('/iot/common/device/command', {
|
||||
id,
|
||||
command,
|
||||
project,
|
||||
dept_id,
|
||||
device_type,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -45,8 +45,10 @@ async function deleteUpdate(id: string) {
|
||||
/**
|
||||
* 上传
|
||||
*/
|
||||
export async function getUpdateUploadUrl() {
|
||||
return pyRequestClient.get('/iot/common/update/getUploadUrl');
|
||||
export async function getUpdateUploadUrl(filename: string) {
|
||||
return pyRequestClient.get('/iot/common/update/getUploadUrl',{
|
||||
params: {filename}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user