debug4
All checks were successful
Deploy to Server / deploy (push) Successful in 29s

This commit is contained in:
jeremygan2021
2026-03-23 00:17:20 +08:00
parent f1f1e0df5a
commit 4f87427a77

View File

@@ -47,6 +47,7 @@ const ProjectSubmission = ({ competitionId, initialValues, onCancel, onSuccess }
name: file.name || '未命名文件',
url: file.file_url_display || file.file_url,
fileType: file.file_type,
file_size_display: file.file_size_display,
status: 'done'
}));
setUploadedFiles(files);
@@ -376,7 +377,12 @@ const ProjectSubmission = ({ competitionId, initialValues, onCancel, onSuccess }
<span style={{ fontSize: 20, marginRight: 12 }}>
{getFileIcon(file.fileType)}
</span>
<span style={{ flex: 1, fontWeight: 500 }}>{file.name}</span>
<div style={{ flex: 1 }}>
<div style={{ fontWeight: 500 }}>{file.name || '未命名文件'}</div>
{file.file_size_display && (
<div style={{ fontSize: 12, color: '#999' }}>{file.file_size_display}</div>
)}
</div>
{file.url && (
<Button
type="link"
@@ -453,6 +459,7 @@ const ProjectSubmission = ({ competitionId, initialValues, onCancel, onSuccess }
name: res.data.name || file.name,
url: res.data.file_url_display || res.data.file_url,
fileType: res.data.file_type,
file_size_display: res.data.file_size_display,
status: 'done'
};