Element Tree component if a subordinate menu is added when all the superior menus are selected, will the newly added menus be selected by default?

< H2 > Project menu I wrote a menu tree structure to select a role to display the menu that has been checked by that role. But I found that if a certain level menu was fully selected the last time it was saved, I added a subordinate menu under the menu, the newly added menu was checked the next time the role was queried, and the data queried in the background did not contain this data, so what was wrong with me or the bug of element < / H2 >?
<el-tree
  :data="data2"
  ref="tree"
  node-key="funcId"
  show-checkbox
  default-expand-all
  @check="getCheckKey"
  :props="defaultProps">
</el-tree>
getRoleFunc(request).then(res => {
  if (res.code === 0) {
    this.checkedNode = res.data;
    // 
    this.$refs.tree.setCheckedKeys(this.checkedKey);
  }
})
< hr >

clipboard.png
this.checkedKey
clipboard.png
setCheckedKeys (keys, leafOnly) I tried to set leafOnly to true and it didn"t work.

May.03,2021

this problem should be designed by elementUI Tree. GetCheckKey selects all-select and half-selected structures. If the setCheckedKeys method is called, the id of the previous semi-selected state is also set to selected. I deal with it in the program, recursively passing only the elements of the most cotyledon to the foreground.

Menu