职务分类左侧树折叠的问题
This commit is contained in:
parent
95afc993f0
commit
7ba0a51fd4
|
|
@ -253,9 +253,10 @@ class LeftTree extends Component {
|
|||
});
|
||||
};
|
||||
|
||||
onExpand = expandedKeys => {
|
||||
onExpand = keys => {
|
||||
const { expandedKeys } = this.state;
|
||||
this.setState({
|
||||
expandedKeys
|
||||
expandedKeys: expandedKeys.includes("-1") ? [] : keys
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue