diff --git a/spug_web/src/pages/deploy/request/Ext1Form.js b/spug_web/src/pages/deploy/request/Ext1Form.js index 7b42c2f..2885d34 100644 --- a/spug_web/src/pages/deploy/request/Ext1Form.js +++ b/spug_web/src/pages/deploy/request/Ext1Form.js @@ -36,7 +36,7 @@ class Ext1Form extends React.Component { fetchVersions = () => { 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 => { this.setState({versions: res}, this._initExtra1); }) diff --git a/spug_web/src/pages/host/Import.js b/spug_web/src/pages/host/Import.js index b863408..6e5d2aa 100644 --- a/spug_web/src/pages/host/Import.js +++ b/spug_web/src/pages/host/Import.js @@ -25,7 +25,7 @@ class ComImport extends React.Component { const formData = new FormData(); formData.append('file', this.state.fileList[0]); formData.append('password', this.state.password); - http.post('/api/host/import/', formData) + http.post('/api/host/import/', formData, {timeout: 120000}) .then(res => { Modal.info({ title: '导入结果',