超时时间修改

master
wanglei 1 year ago
parent 473880cf5d
commit fe00947a1c

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

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

Loading…
Cancel
Save