From 72c880d852d85c0aeb0f9eead92ef795e2e6400f Mon Sep 17 00:00:00 2001 From: vapao Date: Sun, 19 Jan 2020 00:22:27 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=97=B6=E5=8F=AF=E8=83=BD=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/config/setting/Form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_web/src/pages/config/setting/Form.js b/spug_web/src/pages/config/setting/Form.js index cb6bbce..da5aaaa 100644 --- a/spug_web/src/pages/config/setting/Form.js +++ b/spug_web/src/pages/config/setting/Form.js @@ -24,6 +24,7 @@ class ComForm extends React.Component { handleSubmit = () => { this.setState({loading: true}); const formData = this.props.form.getFieldsValue(); + formData['is_public'] = store.type === 'src' ? false : formData['is_public']; let request; if (this.isModify) { formData['id'] = store.record.id; @@ -32,7 +33,6 @@ class ComForm extends React.Component { formData['type'] = store.type; formData['o_id'] = store.id; formData['envs'] = this.state.envs; - formData['is_public'] = store.type === 'src' ? false : formData['is_public']; request = http.post('/api/config/', formData) } request.then(res => {