|
@ -53,7 +53,7 @@ const AddFirmwareModal = (props) => { |
|
|
request.post(crawapi+'/firmwareupgrade') |
|
|
request.post(crawapi+'/firmwareupgrade') |
|
|
// .set('Content-Type','application/octet-stream') |
|
|
// .set('Content-Type','application/octet-stream') |
|
|
// .attach('file',blobData,removeFlag?fileObj.name:recordRow?recordRow.firmwareName:fileObj.name) |
|
|
// .attach('file',blobData,removeFlag?fileObj.name:recordRow?recordRow.firmwareName:fileObj.name) |
|
|
.field('filePath',removeFlag?`${apiRoot}/attachments/`+fileUrl:recordRow?`${apiRoot}/attachments/`+recordRow.filepath:`${apiRoot}/attachments/`+fileUrl) |
|
|
.field('filePath',removeFlag?`${domain}/attachments/`+fileUrl:recordRow?`${domain}/attachments/`+recordRow.filepath:`${domain}/attachments/`+fileUrl) |
|
|
.field('userId', userId||'') |
|
|
.field('userId', userId||'') |
|
|
.field('firmwareName', res?.firmwareName||'') |
|
|
.field('firmwareName', res?.firmwareName||'') |
|
|
.field('comment',res?.remark||'') |
|
|
.field('comment',res?.remark||'') |
|
|