Element: Tree 中如何重新load某节点下的数据呢

Created on 31 May 2017  ·  2Comments  ·  Source: ElemeFE/element

场景是这样,在树的上面加了一些操作按钮,可以新增树的节点,当新增成功以后,想从后台重新加载一次新增节点的父节点,从而能够看到这个节点添加到树里面了。
不知道如何去写呢?

Most helpful comment

let root = this.root
root.childNodes = []
this.loadNode(root, data => {
root.doCreateChildren(data)
})

All 2 comments

Hello, this issue has been closed because it does not conform to our issue requirements. Please submit issues with issue-generator. More info can be found in #3693.

let root = this.root
root.childNodes = []
this.loadNode(root, data => {
root.doCreateChildren(data)
})

Was this page helpful?
0 / 5 - 0 ratings