refactor(utils): 调整 API 请求超时时间

-
This commit is contained in:
hxt
2025-05-03 21:08:39 +08:00
parent 3eec08b9a8
commit e4de238018

View File

@@ -7,7 +7,7 @@ export type RequestParams = Record<string, string | number | boolean | null | un
// 创建axios实例 // 创建axios实例
const instance: AxiosInstance = axios.create({ const instance: AxiosInstance = axios.create({
baseURL: process.env.VITE_API_BASE_URL, baseURL: process.env.VITE_API_BASE_URL,
timeout: 30000, timeout: 40000,
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },