Skip to content

Commit

Permalink
fix: 延长超时时间
Browse files Browse the repository at this point in the history
  • Loading branch information
yhf2000 committed Mar 28, 2024
1 parent dc5d172 commit 2b74e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/API/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const baseUrl = apiAddress().CLIENT_SERVER + '/api'

const service = axios.create({
baseURL: baseUrl,
timeout: 30000,
timeout: 1000 * 60 * 5, // 超时时间改为 5 分钟
})
service.defaults.withCredentials = true

Expand Down

0 comments on commit 2b74e93

Please sign in to comment.