mirror of https://github.com/openspug/spug
U 增加自定义发布文件上传超时时间
parent
36d0480dd8
commit
c7beac1f86
|
@ -59,7 +59,7 @@ export default observer(function () {
|
||||||
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, {timeout: 120000})
|
http.post('/api/deploy/request/upload/', formData, {timeout: 300000})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
file.path = res;
|
file.path = res;
|
||||||
setFileList([file])
|
setFileList([file])
|
||||||
|
|
Loading…
Reference in New Issue