update node opening/closing
This commit is contained in:
@@ -106,7 +106,15 @@ export default {
|
||||
|
||||
methods: {
|
||||
toCommaList,
|
||||
trim
|
||||
trim,
|
||||
|
||||
onNodeClick (node) {
|
||||
if (node.parents) {
|
||||
this.$emit('open-node', { parentId: node.parents[0].id, childId: node.id })
|
||||
} else {
|
||||
this.$emit('open-node', { parentId: node.id })
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
created () {
|
||||
|
||||
Reference in New Issue
Block a user