提交 3b475acd authored 作者: pengxiaohui's avatar pengxiaohui

文件上传超时设置为15分钟

上级 f229ff19
...@@ -30,6 +30,7 @@ export function fileUpload(formData) { ...@@ -30,6 +30,7 @@ export function fileUpload(formData) {
url: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com', url: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com',
method: 'post', method: 'post',
headers: { 'Content-Type': 'multipart/form-data' }, headers: { 'Content-Type': 'multipart/form-data' },
timeout: 900000,
data: formData, data: formData,
withCredentials: false withCredentials: false
}) })
......
...@@ -4,7 +4,7 @@ import { Message } from 'element-ui' ...@@ -4,7 +4,7 @@ import { Message } from 'element-ui'
import { getNonce } from '@/utils/utils' import { getNonce } from '@/utils/utils'
// import router from '@/router' // import router from '@/router'
const httpRequest = axios.create({ const httpRequest = axios.create({
timeout: 300000, timeout: 60000,
withCredentials: true, withCredentials: true,
headers: { 'Content-Type': 'application/json', apikey: 'McS1WsnMwMhsfc7cJ7Y0' } headers: { 'Content-Type': 'application/json', apikey: 'McS1WsnMwMhsfc7cJ7Y0' }
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论