refactor(系统): 接口请求超时时间调整

This commit is contained in:
WangXu10 2024-04-10 17:05:12 +08:00 committed by 刘瑞斌
parent 1bea7794bf
commit 41a25ab6a9
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
// authenticationScheme: 'Bearer',
authenticationScheme: '',
baseURL: `${window.location.origin}/${import.meta.env.VITE_API_BASE_URL as string}`,
timeout: 120 * 1000,
timeout: 300 * 1000,
headers: { 'Content-Type': ContentTypeEnum.JSON },
// 如果是form-data格式
// headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED },