Skip to content

Commit

Permalink
feat: 增加文件压缩解压的超时时间 (#2886)
Browse files Browse the repository at this point in the history
Refs #2884
  • Loading branch information
zhengkunwang223 authored Nov 10, 2023
1 parent acb0bf2 commit adc34aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/api/modules/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export const ChangeFileMode = (form: File.FileCreate) => {
};

export const CompressFile = (form: File.FileCompress) => {
return http.post<File.File>('files/compress', form);
return http.post<File.File>('files/compress', form, TimeoutEnum.T_10M);
};

export const DeCompressFile = (form: File.FileDeCompress) => {
return http.post<File.File>('files/decompress', form);
return http.post<File.File>('files/decompress', form, TimeoutEnum.T_10M);
};

export const GetFileContent = (params: File.ReqFile) => {
Expand Down

0 comments on commit adc34aa

Please sign in to comment.