From 51efc9591e3def946511199ef6970a555b996c84 Mon Sep 17 00:00:00 2001 From: vapao Date: Wed, 30 Mar 2022 22:19:19 +0800 Subject: [PATCH] U clean --- spug_web/src/pages/alarm/contact/Form.js | 1 - spug_web/src/pages/exec/template/Parameter.js | 1 - spug_web/src/pages/home/NavForm.js | 1 - spug_web/src/pages/host/Detail.js | 1 - 4 files changed, 4 deletions(-) diff --git a/spug_web/src/pages/alarm/contact/Form.js b/spug_web/src/pages/alarm/contact/Form.js index 638cc7a..ca83beb 100644 --- a/spug_web/src/pages/alarm/contact/Form.js +++ b/spug_web/src/pages/alarm/contact/Form.js @@ -29,7 +29,6 @@ export default observer(function () { function handleTest(mode, name) { const value = form.getFieldValue(name) - console.log(name, value) if (!value) return message.error('请输入后再执行测试') setTestLoading(mode) http.post('/api/alarm/test/', {mode, value}) diff --git a/spug_web/src/pages/exec/template/Parameter.js b/spug_web/src/pages/exec/template/Parameter.js index 31818d8..6048641 100644 --- a/spug_web/src/pages/exec/template/Parameter.js +++ b/spug_web/src/pages/exec/template/Parameter.js @@ -13,7 +13,6 @@ export default function Parameter(props) { function handleSubmit() { const formData = form.getFieldsValue(); - console.log(formData) formData.id = props.parameter.id if (!formData.name) return message.error('请输入参数名') if (!formData.variable) return message.error('请输入变量名') diff --git a/spug_web/src/pages/home/NavForm.js b/spug_web/src/pages/home/NavForm.js index 6ed9d3f..95d6539 100644 --- a/spug_web/src/pages/home/NavForm.js +++ b/spug_web/src/pages/home/NavForm.js @@ -64,7 +64,6 @@ function NavForm(props) { console.log('after close')} onCancel={props.onCancel} confirmLoading={loading} onOk={handleSubmit}> diff --git a/spug_web/src/pages/host/Detail.js b/spug_web/src/pages/host/Detail.js index 194cd1c..5e99d9a 100644 --- a/spug_web/src/pages/host/Detail.js +++ b/spug_web/src/pages/host/Detail.js @@ -68,7 +68,6 @@ export default observer(function () { } function handleChange(e, key) { - console.log(e) host[key] = e && e.target ? e.target.value : e; if (['created_time', 'expired_time'].includes(key) && e) { host[key] = e.format('YYYY-MM-DD')