feat(config): 增加接口请求超时时间配置
- 将默认请求超时时间从30秒调整为300秒 - 保持上传文件接口的特定超时时间为120秒 - 优化导出语句格式以提高代码可读性
This commit is contained in:
@@ -16,7 +16,7 @@ const config: {
|
|||||||
/**
|
/**
|
||||||
* 接口请求超时时间
|
* 接口请求超时时间
|
||||||
*/
|
*/
|
||||||
request_timeout: 30000,
|
request_timeout: 300000,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 默认接口请求类型
|
* 默认接口请求类型
|
||||||
@@ -30,4 +30,4 @@ const specificApiTimeoutObj = {
|
|||||||
'/infra/file/jeelowcode/upload': 120000,//上传文件接口
|
'/infra/file/jeelowcode/upload': 120000,//上传文件接口
|
||||||
}
|
}
|
||||||
|
|
||||||
export { config, specificApiTimeoutObj }
|
export {config, specificApiTimeoutObj}
|
||||||
|
|||||||
Reference in New Issue
Block a user