分类、部门组件点击全部取消选中状态修复

This commit is contained in:
禺狨
2023-03-15 14:28:13 +08:00
parent b54bf7646e
commit 7d253ef888
5 changed files with 24 additions and 6 deletions

View File

@@ -89,7 +89,12 @@ export const TreeDepartment = (props: PropInterface) => {
>
{props.text}
</div>
<Tree onSelect={onSelect} onExpand={onExpand} treeData={treeData} />
<Tree
selectedKeys={selectKey}
onSelect={onSelect}
onExpand={onExpand}
treeData={treeData}
/>
</div>
);
};