如何在两个节点之间添加新节点?
这是我的代码:-
addNewNode(node, tree){
let new_node = {
"children": [],
"plugin_id": "text_card",
"title": "card",
"text": ""
}
new_node.children = node.data.children
node.data.children = [new_code]
tree.treeModel.update()
}
我只能在前端看到当前节点和new_node,而看不到子节点
版本:-“角树组件”:“ ^ 7.0.2”