addChild(item) { if (!item.children) { this.$set(item, "children", []); } const name = `${item.name} (${item.children.length})`; const id = this.nextId++; item.children.push({ id, name }); }