How does iview tree getCheckedNodes get the parent node

how does the iview tree component getCheckedNodes get the parent node

for example, if you select a list of line numbers, you cannot get the administrator center;

other questions:
finds that multiple choices can be made for whether the multiple attribute is added or not.
in addition, when the getSelectedNodes method and on-select-change can be used, try the empty array returned by both

.
Apr.12,2021

getSelectedNodes this is obtained when clicking on the text.


this can be obtained with this.$refs.tree.getCheckedNodes ();, but only the selected child nodes can be obtained. The parent node can not be obtained in the unselected state, so how to get the parent nodes of more than three or four levels!


the ID of the data node of the route number with the parent node

Menu