From 4f87427a779fc7ea66e0a12a688a30bd0d3f930e Mon Sep 17 00:00:00 2001 From: jeremygan2021 Date: Mon, 23 Mar 2026 00:17:20 +0800 Subject: [PATCH] debug4 --- .../src/components/competition/ProjectSubmission.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/competition/ProjectSubmission.jsx b/frontend/src/components/competition/ProjectSubmission.jsx index 8463eaf..3026922 100644 --- a/frontend/src/components/competition/ProjectSubmission.jsx +++ b/frontend/src/components/competition/ProjectSubmission.jsx @@ -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 } {getFileIcon(file.fileType)} - {file.name} +
+
{file.name || '未命名文件'}
+ {file.file_size_display && ( +
{file.file_size_display}
+ )} +
{file.url && (