From d904c27d956344815d1fb980dce25f8e4f724e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Wed, 27 Dec 2023 16:01:36 +0800 Subject: [PATCH] feat:fix bugs --- .../sections/firmwareUpgrade/components/addFirmwareModal.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx b/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx index 479f7ac..30206ac 100644 --- a/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx +++ b/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx @@ -57,7 +57,7 @@ const AddFirmwareModal = (props) => { .field('userId', userId||'') .field('firmwareName', res?.firmwareName||'') .field('comment',res?.remark||'') - .field('md5Value',res?.md5||'') + .field('md5Value',res?.md5Value||'') .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'}) .end((err, response) => { @@ -69,7 +69,7 @@ const AddFirmwareModal = (props) => { setRemoveFlag(false) onCancel() }else{ - console.error('Superagent request failed:'); + console.error('Superagent request failed:',err); Notification.error({ title: recordRow?'编辑固件包':'新增固件包', content: recordRow?'编辑失败':'新增失败', duration: 3,