|
|
|
@ -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) {
|
|
|
|
|