Skip to content

Commit

Permalink
延迟请求超时时间
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Aug 29, 2017
1 parent 115b2b0 commit f65e714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth';
// 创建axios实例
const service = axios.create({
baseURL: process.env.BASE_API, // api的base_url
timeout: 5000 // 请求超时时间
timeout: 15000 // 请求超时时间
});

// request拦截器
Expand Down

0 comments on commit f65e714

Please sign in to comment.