|
@ -10,7 +10,7 @@ const serverInfo = getServerInfo() |
|
|
// 创建 Axios 实例
|
|
|
// 创建 Axios 实例
|
|
|
const apiClient: AxiosInstance = axios.create({ |
|
|
const apiClient: AxiosInstance = axios.create({ |
|
|
baseURL: serverInfo.httpUrl, // 设置请求的根路径
|
|
|
baseURL: serverInfo.httpUrl, // 设置请求的根路径
|
|
|
timeout: 30000, |
|
|
|
|
|
|
|
|
timeout: 60000, |
|
|
headers: { |
|
|
headers: { |
|
|
'Content-Type': 'application/json', |
|
|
'Content-Type': 'application/json', |
|
|
}, |
|
|
}, |
|
|