🐛 fix(frontend): 修复上传进度与取件详情弹窗

This commit is contained in:
orion committed 2026-09-18 15:38:44 +08:00
1 parent da54bf40c9
commit 988ae2429d
5 files changed
+43 -124

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@ type UseSendSubmitOptions = {
getMaxFileSize: () => number
notify: (message: string, type: AlertType) => void
translate: Translate
onProgress: (progress: number) => void
onProgress: (progress: UploadProgress) => void
onFinalizing: () => void
onHashCalculated: (hash: string) => void
}
@@ -49,7 +49,7 @@ export function useSendSubmit(options: UseSendSubmitOptions) {
onHashCalculated: options.onHashCalculated,
onFinalizing: options.onFinalizing,
onProgress: (progress: UploadProgress) => {
options.onProgress(progress.percentage)
options.onProgress(progress)
},
messages: {
initFailed: options.translate('send.messages.initChunkUploadFailed'),
@@ -68,7 +68,7 @@ export function useSendSubmit(options: UseSendSubmitOptions) {
expireValue,
expireStyle: expireStyle as ExpireStyle,
onProgress: (progress) => {
options.onProgress(progress.percentage)
options.onProgress(progress)
}
})