职务分类左侧树折叠的问题

This commit is contained in:
liyongshun 2022-08-22 16:13:10 +08:00
parent 95afc993f0
commit 7ba0a51fd4
1 changed files with 3 additions and 2 deletions

View File

@ -253,9 +253,10 @@ class LeftTree extends Component {
});
};
onExpand = expandedKeys => {
onExpand = keys => {
const { expandedKeys } = this.state;
this.setState({
expandedKeys
expandedKeys: expandedKeys.includes("-1") ? [] : keys
});
};