U 增加自定义发布文件上传超时时间 #185

pull/437/head
vapao 2020-09-01 09:55:42 +08:00
parent 4fe6c522f2
commit 06b17b98d5
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class Ext2Form extends React.Component {
const formData = new FormData();
formData.append('file', file);
formData.append('deploy_id', store.record.deploy_id);
http.post('/api/deploy/request/upload/', formData)
http.post('/api/deploy/request/upload/', formData, {timeout: 120000})
.then(res => {
file.path = res;
this.setState({fileList: [file]})