src/components/catalogueTree.vue @@ -102,7 +102,7 @@ orderNum: data.children ? data.children.length + 1 : 1, }; this.id = newChild.id; //修改新的最大I console.log(newChild); if (!data.children) { this.$set(data, "children", []);