From 606b0b991748740179fa37448f645e6e9c7f1c41 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 24 一月 2021 19:17:38 +0800 Subject: [PATCH] 2021-01-24 --- src/templates/zshare/customscript/index.jsx | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/templates/zshare/customscript/index.jsx b/src/templates/zshare/customscript/index.jsx index a559a1f..b7c3ecb 100644 --- a/src/templates/zshare/customscript/index.jsx +++ b/src/templates/zshare/customscript/index.jsx @@ -140,7 +140,6 @@ let _item = { name: item.funcname, value: window.decodeURIComponent(window.atob(item.longparam)) - // value: Utils.UnformatOptions(item.longparam) } return _item }) @@ -267,6 +266,7 @@ } selectScript = (value, option) => { + if (!value || !option) return let _sql = this.props.form.getFieldValue('sql') if (_sql) { _sql = _sql + ` @@ -380,6 +380,7 @@ <Col span={10} className="quick-add"> <Form.Item label={'蹇嵎娣诲姞'} style={{marginBottom: 0}}> <Select + allowClear showSearch filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0} onChange={this.selectScript} -- Gitblit v1.8.0