king
2021-09-01 31ec63f0419895876cbaba99637a884a32d33d0d
src/mob/searchconfig/settingform/index.jsx
@@ -21,7 +21,7 @@
    if (roleList) {
      try {
        roleList = JSON.parse(roleList)
      } catch {
      } catch (e) {
        roleList = []
      }
    } else {
@@ -197,6 +197,18 @@
            </Form.Item>
          </Col>
          {type === 'search' ? <Col span={12}>
            <Form.Item label="扫码">
              {getFieldDecorator('scan', {
                initialValue: config.setting.scan || 'false'
              })(
                <Radio.Group>
                  <Radio value="true">开启</Radio>
                  <Radio value="false">关闭</Radio>
                </Radio.Group>
              )}
            </Form.Item>
          </Col> : null}
          {type === 'search' ? <Col span={12}>
            <Form.Item label="黑名单">
              {getFieldDecorator('blacklist', {
                initialValue: config.setting.blacklist || []