mirror of https://github.com/openspug/spug
U 增加自定义发布文件上传超时时间 #185
parent
4fe6c522f2
commit
06b17b98d5
|
@ -78,7 +78,7 @@ class Ext2Form extends React.Component {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('file', file);
|
formData.append('file', file);
|
||||||
formData.append('deploy_id', store.record.deploy_id);
|
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 => {
|
.then(res => {
|
||||||
file.path = res;
|
file.path = res;
|
||||||
this.setState({fileList: [file]})
|
this.setState({fileList: [file]})
|
||||||
|
|
Loading…
Reference in New Issue