同步异常兜底

This commit is contained in:
tianmo committed 2026-10-17 15:08:21 +08:00
1 parent 9cb8552a99
commit a1b4a63552
20 files changed
+754 -54

No files matched your search

+6 -1
View File
@@ -268,7 +268,12 @@ export function useBackup() {
)
await refreshJobsFirstPage()
startPolling()
toast.add({ title: t('storage.backup.siteSyncStarted'), color: 'success' })
toast.add({
title: body.abandonJobId
? t('storage.backup.siteSyncAbandoned')
: t('storage.backup.siteSyncStarted'),
color: 'success'
})
return data.job
} catch (error: unknown) {
handleError(error, t('storage.backup.siteSyncFailed'))