Fix:修复快速多次渲染时节点位置错乱的问题

This commit is contained in:
wanglin2 2023-04-19 15:45:51 +08:00
parent f815f71dd7
commit e36a408275
2 changed files with 3 additions and 2 deletions

View File

@ -183,11 +183,11 @@ class MindMap {
// 渲染,部分渲染
render(callback, source = '') {
this.batchExecution.push('render', () => {
// this.batchExecution.push('render', () => {
this.initTheme()
this.renderer.reRender = false
this.renderer.render(callback, source)
})
// })
}
// 重新渲染

View File

@ -251,6 +251,7 @@ class Render {
// 渲染
render(callback = () => {}, source) {
// 如果当前还没有渲染完毕,不再触发渲染
console.log('this.isRendering', this.isRendering);
if (this.isRendering) {
// 等待当前渲染完毕后再进行一次渲染
this.hasWaitRendering = true