Commit 6d8f8858 by 张杰

增加请求超时时间

1 parent de1e538f
...@@ -5,7 +5,7 @@ import store from '../vuex/store' ...@@ -5,7 +5,7 @@ import store from '../vuex/store'
import { checkStatus, showLoading } from './checkStatus'; import { checkStatus, showLoading } from './checkStatus';
const instance = axios.create({ // 创建axios实例,在这里可以设置请求的默认配置 const instance = axios.create({ // 创建axios实例,在这里可以设置请求的默认配置
timeout: 60000, // 设置超时时间60s timeout: 30*60000, // 设置超时时间60s
retry: 3, retry: 3,
retryDelay: 1000 retryDelay: 1000
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!