Browse Source

fix: 延长备份下载超时时间 (#739)

main^2
ssongliu 2 years ago committed by GitHub
parent
commit
4399ffa9a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      frontend/src/api/modules/setting.ts

8
frontend/src/api/modules/setting.ts

@ -54,16 +54,16 @@ export const loadBaseDir = () => {
// backup // backup
export const handleBackup = (params: Backup.Backup) => { export const handleBackup = (params: Backup.Backup) => {
return http.post(`/settings/backup/backup`, params, 400000); return http.post(`/settings/backup/backup`, params, 600000);
}; };
export const handleRecover = (params: Backup.Recover) => { export const handleRecover = (params: Backup.Recover) => {
return http.post(`/settings/backup/recover`, params, 400000); return http.post(`/settings/backup/recover`, params, 600000);
}; };
export const handleRecoverByUpload = (params: Backup.Recover) => { export const handleRecoverByUpload = (params: Backup.Recover) => {
return http.post(`/settings/backup/recover/byupload`, params, 400000); return http.post(`/settings/backup/recover/byupload`, params, 600000);
}; };
export const downloadBackupRecord = (params: Backup.RecordDownload) => { export const downloadBackupRecord = (params: Backup.RecordDownload) => {
return http.post<string>(`/settings/backup/record/download`, params); return http.post<string>(`/settings/backup/record/download`, params, 600000);
}; };
export const deleteBackupRecord = (params: { ids: number[] }) => { export const deleteBackupRecord = (params: { ids: number[] }) => {
return http.post(`/settings/backup/record/del`, params); return http.post(`/settings/backup/record/del`, params);

Loading…
Cancel
Save