src/components/catalogueTree copy.vue
@@ -121,7 +121,7 @@ const children = parent.data.children || parent.data; const index = children.findIndex((d) => d.id === data.id); let res = children.splice(index, 1); console.log(this.flaten(res)); }, flaten(arr) { return arr.reduce((p, v, i) => {