From 5ffa783c1f19169b6e1c1ebc91f957da141dcb8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Mon, 4 Dec 2023 13:41:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E5=9B=BA=E4=BB=B6?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E4=B8=8A=E4=BC=A0=E6=8E=A5=E5=8F=A3=E7=9A=84?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/firmwareUpgrade/components/addFirmwareModal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx b/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx index f932f3f..9d4444c 100644 --- a/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx +++ b/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx @@ -53,7 +53,7 @@ const AddFirmwareModal = (props) => { request.post(crawapi+'/firmwareupgrade') // .set('Content-Type','application/octet-stream') // .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('firmwareName', res?.firmwareName||'') .field('comment',res?.remark||'')