|
@ -57,7 +57,7 @@ const AddFirmwareModal = (props) => { |
|
|
.field('userId', userId||'') |
|
|
.field('userId', userId||'') |
|
|
.field('firmwareName', res?.firmwareName||'') |
|
|
.field('firmwareName', res?.firmwareName||'') |
|
|
.field('comment',res?.remark||'') |
|
|
.field('comment',res?.remark||'') |
|
|
.field('md5Value',res?.md5||'') |
|
|
.field('md5Value',res?.md5Value||'') |
|
|
.field('device_meta_name', options?.find(item=>item.value===res?.deviceName)?.label||'') |
|
|
.field('device_meta_name', options?.find(item=>item.value===res?.deviceName)?.label||'') |
|
|
.query({ version:res?.versionNo,device_meta_id: res?.deviceName,token:'22767e1f-db8d-4a1d-87d4-56347cf21247'}) |
|
|
.query({ version:res?.versionNo,device_meta_id: res?.deviceName,token:'22767e1f-db8d-4a1d-87d4-56347cf21247'}) |
|
|
.end((err, response) => { |
|
|
.end((err, response) => { |
|
@ -69,7 +69,7 @@ const AddFirmwareModal = (props) => { |
|
|
setRemoveFlag(false) |
|
|
setRemoveFlag(false) |
|
|
onCancel() |
|
|
onCancel() |
|
|
}else{ |
|
|
}else{ |
|
|
console.error('Superagent request failed:'); |
|
|
console.error('Superagent request failed:',err); |
|
|
Notification.error({ title: recordRow?'编辑固件包':'新增固件包', |
|
|
Notification.error({ title: recordRow?'编辑固件包':'新增固件包', |
|
|
content: recordRow?'编辑失败':'新增失败', |
|
|
content: recordRow?'编辑失败':'新增失败', |
|
|
duration: 3, |
|
|
duration: 3, |
|
|