Build(SensitiveWord and Echarts): Fix tsc error

This commit is contained in:
2024-05-06 11:01:02 +08:00
parent 552efb9e8a
commit f785c8271f
2 changed files with 10 additions and 8 deletions

View File

@@ -138,8 +138,12 @@ const SensitiveWord = () => {
dataSource={dataSource}
targetKeys={targetKeys}
selectedKeys={selectedKeys}
onChange={setTargetKeys}
onSelectChange={setSelectedKeys}
onChange={(value) => {
setTargetKeys(value as string[])
}}
onSelectChange={(value) => {
setSelectedKeys(value as string[])
}}
rowKey={(item) => item.id}
render={(item) => item.word}
/>