超时时间修改

master
wanglei 1 year ago
parent 473880cf5d
commit fe00947a1c

@ -8,7 +8,7 @@ export function collectSaves(data) {
'Content-Type': 'multipart/form-data', 'Content-Type': 'multipart/form-data',
repeatSubmit: false repeatSubmit: false
}, },
timeout: 120000, timeout: 300000,
method: 'post', method: 'post',
data: data data: data
}) })

@ -17,7 +17,7 @@ const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分 // axios中请求配置有baseURL选项表示请求URL公共部分
baseURL: process.env.VUE_APP_BASE_API, baseURL: process.env.VUE_APP_BASE_API,
// 10s超时 // 10s超时
timeout: 10000 timeout: 20000
}) })
// request拦截器 // request拦截器
@ -131,7 +131,7 @@ export function download(url, params, filename, config) {
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
responseType: 'blob', responseType: 'blob',
...config, ...config,
timeout: 180000, timeout: 3600000,
}).then(async (data) => { }).then(async (data) => {
const isBlob = blobValidate(data); const isBlob = blobValidate(data);
if (isBlob) { if (isBlob) {

Loading…
Cancel
Save