fix (接口定义): 修复附件名称显示问题

--bug=1007329 --user=赵勇 【github#6821】API接口在上传附件并保存后,点击TEST功能,查看部分附件显示为空白,且实际未上传生效 #6821 https://www.tapd.cn/55049933/s/1057801
This commit is contained in:
fit2-zhao 2021-10-22 16:05:48 +08:00 committed by fit2-zhao
parent ee79ec1c50
commit 218845e3ab
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
});