From d36c27e80e668b3bc1dcd687a18a2f2d125b32db Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 24 一月 2021 02:15:12 +0800 Subject: [PATCH] 2021-01-24 --- src/templates/zshare/verifycard/customscript/index.jsx | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/templates/zshare/verifycard/customscript/index.jsx b/src/templates/zshare/verifycard/customscript/index.jsx index 1914af3..6a10c5d 100644 --- a/src/templates/zshare/verifycard/customscript/index.jsx +++ b/src/templates/zshare/verifycard/customscript/index.jsx @@ -171,6 +171,8 @@ } selectScript = (value, option) => { + if (!value || !option) return + let _sql = this.props.form.getFieldValue('sql') if (_sql) { _sql = _sql + ` @@ -243,6 +245,7 @@ <Form.Item label={'蹇嵎娣诲姞'} style={{marginBottom: 0}}> <Select showSearch + allowClear filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0} onChange={this.selectScript} getPopupContainer={() => document.getElementById('verify-custom-scripts')} -- Gitblit v1.8.0