U 优化部分接口前端请求超时时间

pull/103/head
vapao 2020-06-02 14:00:34 +08:00
parent 8c2dac9ea8
commit fbfba041db
2 changed files with 2 additions and 2 deletions

View File

@ -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);
})

View File

@ -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: '导入结果',