Browse Source

接口超时60s

relver
zhangjiming 7 months ago
parent
commit
f09450942e
  1. 2
      src/utils/axios.ts

2
src/utils/axios.ts

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

Loading…
Cancel
Save