Give the tree component a ref
<q-tree
ref=“tree”
:nodes = “companySetup”
:selected.sync=“selected”
…
Then use it like this:
methods: {
nodeExists(key) {
return this.$refs.tree.getNodeByKey(key)
},
getSelectedNode() {
return this.$refs.tree.getNodeByKey(this.selected)
},