✨ 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

+4
View File
@@ -30,6 +30,7 @@ export function useSendFlow() {
const showDrawer = ref(false)
const selectedRecord = ref<SentFileRecord | null>(null)
const isSubmitting = ref(false)
const isFinalizing = ref(false)
const fileHash = ref('')
const sendRecords = computed(() => fileDataStore.shareData)
const uploadDescription = computed(() =>
@@ -63,6 +64,7 @@ export function useSendFlow() {
onProgress: (progress) => {
uploadProgress.value = progress
},
onFinalizing: () => { isFinalizing.value = true },
onHashCalculated: (hash) => {
fileHash.value = hash
}
@@ -284,6 +286,7 @@ export function useSendFlow() {
} finally {
uploadProgress.value = 0
isSubmitting.value = false
isFinalizing.value = false
}
}
@@ -319,6 +322,7 @@ export function useSendFlow() {
showDrawer,
selectedRecord,
isSubmitting,
isFinalizing,
sendRecords,
uploadDescription,
expirationOptions,