From fbfba041dba6e871ede0999c1b4fa7f483d7c860 Mon Sep 17 00:00:00 2001 From: vapao Date: Tue, 2 Jun 2020 14:00:34 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=89=8D=E7=AB=AF=E8=AF=B7=E6=B1=82=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/deploy/request/Ext1Form.js | 2 +- spug_web/src/pages/host/Import.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: '导入结果',