Skip to content

Commit

Permalink
chore: reduce timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Feb 20, 2024
1 parent 5c974ea commit 5305cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const service = axios.create({
baseURL:
import.meta.env.VITE_API_URL ||
`${window.location.protocol}//${window.location.hostname}:9529/api/v1`,
timeout: 120000,
timeout: 5000,
})

const errHandler = async (error: AxiosError) => {
Expand Down

0 comments on commit 5305cfb

Please sign in to comment.