Fix:开启性能模式后,修复先移动画布再清空节点数据后画布上的节点还存在的问题
This commit is contained in:
parent
53fecc062f
commit
469f5b26cd
@ -147,6 +147,9 @@ class Render {
|
|||||||
})
|
})
|
||||||
// 性能模式
|
// 性能模式
|
||||||
const onViewDataChange = throttle(() => {
|
const onViewDataChange = throttle(() => {
|
||||||
|
if (!this.renderTree) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (this.root) {
|
if (this.root) {
|
||||||
this.mindMap.emit('node_tree_render_start')
|
this.mindMap.emit('node_tree_render_start')
|
||||||
this.root.render(
|
this.root.render(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user