fix(web): file add size

This commit is contained in:
zhaoying
2026-04-07 11:17:14 +08:00
parent 6c8d0d9d64
commit bfc98efc9d
9 changed files with 213 additions and 169 deletions

View File

@@ -237,8 +237,11 @@ const UploadFiles = forwardRef<UploadFilesRef, UploadFilesProps>(({
percent: 0,
type: rcFile.type,
originFileObj: rcFile,
thumbUrl: URL.createObjectURL(rcFile)
thumbUrl: URL.createObjectURL(rcFile),
size: rcFile.size,
}
console.log('fileVo', fileVo)
onChange?.(fileVo)
request.uploadFile(action, formData, requestConfig)
.then(res => {