✨ feat(frontend): 支持上传后台校验与断线恢复
This commit is contained in:
1 parent
e8c12af834
commit
1ea2fa3c6e
10 files changed
+108
-12
No files matched your search
@@ -13,6 +13,7 @@ type UseSendSubmitOptions = {
|
||||
notify: (message: string, type: AlertType) => void
|
||||
translate: Translate
|
||||
onProgress: (progress: number) => void
|
||||
onFinalizing: () => void
|
||||
onHashCalculated: (hash: string) => void
|
||||
}
|
||||
|
||||
@@ -46,6 +47,7 @@ export function useSendSubmit(options: UseSendSubmitOptions) {
|
||||
expireValue,
|
||||
expireStyle,
|
||||
onHashCalculated: options.onHashCalculated,
|
||||
onFinalizing: options.onFinalizing,
|
||||
onProgress: (progress: UploadProgress) => {
|
||||
options.onProgress(progress.percentage)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user