Commit addb8a3d by 张杰

增加超时时间

1 parent c51461f2
...@@ -5,7 +5,7 @@ import store from '@/store' ...@@ -5,7 +5,7 @@ import store from '@/store'
import { checkStatus, showLoading } from './checkStatus' import { checkStatus, showLoading } from './checkStatus'
const instance = axios.create({ // 创建axios实例,在这里可以设置请求的默认配置 const instance = axios.create({ // 创建axios实例,在这里可以设置请求的默认配置
timeout: 3*60*1000, // 设置超时时间60s timeout: 10*60*1000, // 设置超时时间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!