diff --git a/doc/tree/selection/CheckboxDoc.vue b/doc/tree/selection/CheckboxDoc.vue index ae11240a3..46a9fa4c4 100644 --- a/doc/tree/selection/CheckboxDoc.vue +++ b/doc/tree/selection/CheckboxDoc.vue @@ -35,20 +35,21 @@ export default { import { NodeService } from '@/service/NodeService'; export default { -data() { - return { - nodes: null - }; -}, -mounted() { - NodeService.getTreeNodes().then((data) => (this.nodes = data)); -}, -methods: { - onNodeSelect(node) { - this.$toast.add({ severity: 'success', summary: 'Node Selected', detail: node.label, life: 3000 }); + data() { + return { + nodes: null + }; }, - onNodeUnselect(node) { - this.$toast.add({ severity: 'success', summary: 'Node Unselected', detail: node.label, life: 3000 }); + mounted() { + NodeService.getTreeNodes().then((data) => (this.nodes = data)); + }, + methods: { + onNodeSelect(node) { + this.$toast.add({ severity: 'success', summary: 'Node Selected', detail: node.label, life: 3000 }); + }, + onNodeUnselect(node) { + this.$toast.add({ severity: 'success', summary: 'Node Unselected', detail: node.label, life: 3000 }); + } } } <\/script>`,