提交 3061c73a authored 作者: 龙菲's avatar 龙菲

修复布展单元新增同级节点bug

上级 468f8171
......@@ -311,7 +311,7 @@ export default {
data.children.push(newChild);
},
appendPeerNode(node, data) {
// debugger
debugger;
const parent = node.parent.data;
const newChild = {
euId: euId++,
......@@ -324,7 +324,12 @@ export default {
videos: "",
children: [],
};
parent.push(newChild);
// return
if (parent instanceof Array) {
parent.push(newChild);
} else {
parent.children.push(newChild)
}
},
remove(node, data) {
const parent = node.parent;
......@@ -355,7 +360,7 @@ export default {
this.currentData = this.treeData[0];
break;
default:
this.$message.info('该功能仍在开发中,敬请期待')
this.$message.info("该功能仍在开发中,敬请期待");
break;
}
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论