fix(request): 调整默认请求超时时间为 30 秒
- 将 vben 全局请求超时从 10s 调整为 30s - 对齐 Vue3 + Element Plus 管理后台的请求超时配置 - 避免代码生成器导入表等慢接口频繁超时pull/367/head
parent
8611d40b5c
commit
2a45d2d324
|
|
@ -63,7 +63,7 @@ class RequestClient {
|
||||||
},
|
},
|
||||||
responseReturn: 'raw',
|
responseReturn: 'raw',
|
||||||
// 默认超时时间
|
// 默认超时时间
|
||||||
timeout: 10_000,
|
timeout: 30_000,
|
||||||
paramsSerializer: 'repeat',
|
paramsSerializer: 'repeat',
|
||||||
};
|
};
|
||||||
const { ...axiosConfig } = options;
|
const { ...axiosConfig } = options;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue