✨ feat(frontend): 支持上传后台校验与断线恢复

This commit is contained in:
orion committed 2026-09-18 11:51:35 +08:00
1 parent e8c12af834
commit 1ea2fa3c6e
10 files changed
+108 -12

No files matched your search

+2
View File
@@ -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)
},