fix: 大文件合并接口设置10分钟超时

This commit is contained in:
赵伟 2026-03-05 15:10:47 +08:00
parent d0432ac533
commit b2080eb057
3 changed files with 8 additions and 8 deletions

View File

@ -817,6 +817,7 @@ export default [
{
path: '/training',
name: '模型训练',
redirect: 'pipeline',
routes: [
{
name: '小模型训练',

View File

@ -32,7 +32,7 @@ const popupError = (error: string, skipErrorHandler: boolean | undefined = false
* @doc https://umijs.org/docs/max/request#配置
*/
export const requestConfig: RequestConfig = {
timeout: 120 * 1000,
timeout: 120 * 1000, // 2分钟
requestInterceptors: [
(url: string, options: AxiosRequestConfig) => {
const headers = options.headers ?? {};

View File

@ -311,7 +311,7 @@ export function getUploadChunkReq(params) {
method: 'GET',
params,
skipLoading: true,
skipLoading: true,
});
}
@ -320,9 +320,9 @@ export function uploadChunkReq(data) {
return request(`/api/mmp/uploader/chunk`, {
method: 'POST',
data,
skipLoading: true,
skipErrorHandler: true,
timeout: 600 * 1000, // 10分钟
skipLoading: true,
skipErrorHandler: true,
timeout: 600 * 1000, // 10分钟
});
}
@ -330,9 +330,9 @@ export function uploadChunkReq(data) {
export function mergeChunkReq(data) {
return request(`/api/mmp/uploader/mergeFile`, {
method: 'POST',
data,
skipLoading: true,
skipLoading: true,
timeout: 600 * 1000, // 10分钟
});
}
@ -340,7 +340,6 @@ export function mergeChunkReq(data) {
export function getUploadFileListReq(params) {
return request(`/api/mmp/uploader/selectFileList`, {
method: 'GET',
params,
skipLoading: true,
});