Browse Source

feat:修改固件升级上传接口的参数

dev
zhaobing’ 1 year ago
parent
commit
5ffa783c1f
  1. 2
      web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx

2
web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx

@ -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||'')

Loading…
Cancel
Save