Commit 30ddeff9 by zhaochengxiang

bug fix

parent 77e22e28
......@@ -162,8 +162,8 @@ const FC = (props) => {
type: 'datamodel.suggest',
payload: {
params: {
name: args.name,
cnName: args.cnName,
name: args.name??'',
cnName: args.cnName??'',
offset,
topN,
}
......
......@@ -47,6 +47,7 @@ const FC = (props) => {
type: undefined,
item: undefined
})
const [keyword, setKeywrod] = React.useState()
const [modal, contextHolder] = Modal.useModal()
......@@ -369,7 +370,7 @@ const FC = (props) => {
onClick={onExportClick}
defaultPermission={true}
>
导出
全量导出
</PermissionButton>
</Space>
<Space>
......@@ -399,10 +400,11 @@ const FC = (props) => {
</Select>
<Input size="middle"
placeholder="规则名称/描述搜索"
value={args.keyword}
value={keyword}
bordered={true} allowClear
onChange={(e) => {
setArgs({ ...args, keyword: e.target.value })
setKeywrod(e.target.value)
setArgs({ ...args, keyword: (e.target.value??'').trim() })
}}
style={{ width: 270 }}
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment