when antd tree sets defaultExpandAll to true, it expands by default the first time it is initialized. When the tree is collapsed, the window is closed and the window is opened again, the tree remains collapsed. Then I use expandedKeys to control the nodes that need to be expanded, but clicking on the nodes set by expandedKeys cannot be collapsed. May I ask how to solve the appeal problem? Thank you!
<Tree
checkable
onCheck={this.onCheck}
defaultExpandAll={expandAllState}
checkedKeys={checkedkey}
loadData={this.onLoadData}
expandedKeys={expandedKeys}
>
{this.renderTreeNodes(roles)}
</Tree>