From 218845e3abcdfb11f6e28ade782d22a429fa253c Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 22 Oct 2021 16:05:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=20(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E9=99=84=E4=BB=B6=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=20--bug=3D1007329=20--user?= =?UTF-8?q?=3D=E8=B5=B5=E5=8B=87=20=E3=80=90github#6821=E3=80=91API?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=9C=A8=E4=B8=8A=E4=BC=A0=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E5=B9=B6=E4=BF=9D=E5=AD=98=E5=90=8E=EF=BC=8C=E7=82=B9=E5=87=BB?= =?UTF-8?q?TEST=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=9F=A5=E7=9C=8B=E9=83=A8?= =?UTF-8?q?=E5=88=86=E9=99=84=E4=BB=B6=E6=98=BE=E7=A4=BA=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E7=99=BD=EF=BC=8C=E4=B8=94=E5=AE=9E=E9=99=85=E6=9C=AA=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=94=9F=E6=95=88=20#6821=20https://www.tapd.cn/55049?= =?UTF-8?q?933/s/1057801?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/common/js/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/common/js/utils.js b/frontend/src/common/js/utils.js index 116a2d8ea4..d575b4ef90 100644 --- a/frontend/src/common/js/utils.js +++ b/frontend/src/common/js/utils.js @@ -349,7 +349,7 @@ export function _getBodyUploadFiles(request, bodyUploadFiles, obj) { if (param.files) { param.files.forEach(item => { if (item.file) { - item.name = item.file.name; + item.name = item.file.name ? item.file.name : item.name; bodyUploadFiles.push(item.file); } }); @@ -361,7 +361,7 @@ export function _getBodyUploadFiles(request, bodyUploadFiles, obj) { if (param.files) { param.files.forEach(item => { if (item.file) { - item.name = item.file.name; + item.name = item.file.name ? item.file.name : item.name; bodyUploadFiles.push(item.file); } });