You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
graph.removeNodeData([node.id]) 删除节点是会报错uncaught Error: Node not found for id: 3s1W-xAqQQ
#7455
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
使用的是5.0.50版本
deleteNode = (event) => {
console.log(event, 'deleteNode')
const { graph, element } = this.context
const node = graph.getNodeData(event.id)
graph.removeNodeData([node.id])
graph.render()
}
当我使用 graph.removeNodeData 时,node节点确实是删除了,然后就开始报错uncaught Error: Node not found for id: 3s1W-xAqQQ
All reactions