mirror of https://github.com/openspug/spug
U 优化部分接口前端请求超时时间
parent
8c2dac9ea8
commit
fbfba041db
|
@ -36,7 +36,7 @@ class Ext1Form extends React.Component {
|
||||||
|
|
||||||
fetchVersions = () => {
|
fetchVersions = () => {
|
||||||
this.setState({fetching: true});
|
this.setState({fetching: true});
|
||||||
http.get(`/api/app/deploy/${store.record.deploy_id}/versions/`)
|
http.get(`/api/app/deploy/${store.record.deploy_id}/versions/`, {timeout: 120000})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.setState({versions: res}, this._initExtra1);
|
this.setState({versions: res}, this._initExtra1);
|
||||||
})
|
})
|
||||||
|
|
|
@ -25,7 +25,7 @@ class ComImport extends React.Component {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('file', this.state.fileList[0]);
|
formData.append('file', this.state.fileList[0]);
|
||||||
formData.append('password', this.state.password);
|
formData.append('password', this.state.password);
|
||||||
http.post('/api/host/import/', formData)
|
http.post('/api/host/import/', formData, {timeout: 120000})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
Modal.info({
|
Modal.info({
|
||||||
title: '导入结果',
|
title: '导入结果',
|
||||||
|
|
Loading…
Reference in New Issue