diff --git a/dangan-ui/src/api/dangan/collection.js b/dangan-ui/src/api/dangan/collection.js index 6cdd1f7..a192912 100644 --- a/dangan-ui/src/api/dangan/collection.js +++ b/dangan-ui/src/api/dangan/collection.js @@ -8,7 +8,7 @@ export function collectSaves(data) { 'Content-Type': 'multipart/form-data', repeatSubmit: false }, - timeout: 120000, + timeout: 300000, method: 'post', data: data }) diff --git a/dangan-ui/src/utils/request.js b/dangan-ui/src/utils/request.js index e200077..49035b6 100644 --- a/dangan-ui/src/utils/request.js +++ b/dangan-ui/src/utils/request.js @@ -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) {