Fix:修复性能模式下每次渲染还是会重新创建所有节点的问题

This commit is contained in:
街角小林
2025-03-14 09:24:17 +08:00
parent d486cbd157
commit 17e9c29f1d

View File

@@ -74,6 +74,9 @@ class Base {
lastData.isActive = curData.isActive
lastData.expand = curData.expand
lastData = JSON.stringify(lastData)
} else {
// 只在都有数据时才进行对比
return false
}
return lastData !== JSON.stringify(curData)
}