🐛 fix(frontend): 修复上传进度与取件详情弹窗
This commit is contained in:
1 parent
da54bf40c9
commit
988ae2429d
5 files changed
+43
-124
No files matched your search
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user