diff --git a/spug_web/src/pages/monitor/Form.js b/spug_web/src/pages/monitor/Form.js index 6ed7033..ff262e8 100644 --- a/spug_web/src/pages/monitor/Form.js +++ b/spug_web/src/pages/monitor/Form.js @@ -114,7 +114,7 @@ class ComForm extends React.Component { const type = this.props.form.getFieldValue('type'); const formData = this._getFieldsValue(type); formData['type'] = type; - http.post('/api/monitor/test/', formData) + http.post('/api/monitor/test/', formData, {timeout: 120000}) .then(res => { if (res.is_success) { Modal.success({content: res.message}) diff --git a/spug_web/src/pages/schedule/Table.js b/spug_web/src/pages/schedule/Table.js index 4e856b4..00f2be3 100644 --- a/spug_web/src/pages/schedule/Table.js +++ b/spug_web/src/pages/schedule/Table.js @@ -114,7 +114,7 @@ class ComTable extends React.Component { Modal.confirm({ title: '操作确认', content: '立即执行该任务(不影响调度规则,且不会触发失败通知)?', - onOk: () => http.post(`/api/schedule/${text.id}/`) + onOk: () => http.post(`/api/schedule/${text.id}/`, null, {timeout: 120000}) .then(res => store.showInfo(text, res)) }) };