Przeglądaj źródła

🐛 fix(ui): 修复残疾人照片信息显示问题

- 将照片的 fileUrl 字段从 photo.fileUrl 改为 photo.file?.fullUrl 以获取正确的完整 URL
- 将照片的 fileName 字段从固定字符串改为优先使用 photo.file?.name,避免显示错误的文件名
yourname 1 dzień temu
rodzic
commit
5b7b44e166

+ 2 - 2
allin-packages/disability-person-management-ui/src/components/DisabilityPersonManagement.tsx

@@ -975,8 +975,8 @@ const DisabilityPersonManagement: React.FC = () => {
                       id: photo.id,
                       photoType: photo.photoType,
                       fileId: photo.fileId,
-                      fileUrl: photo.fileUrl,
-                      fileName: `照片-${photo.photoType}`,
+                      fileUrl: photo.file?.fullUrl,
+                      fileName: photo.file?.name || `照片-${photo.photoType}`,
                       canDownload: photo.canDownload,
                       uploadTime: photo.uploadTime
                     }))}