Fix:修复处于回退操作中激活节点后无法前进的问题

This commit is contained in:
街角小林
2024-08-15 16:25:39 +08:00
parent bc56f90595
commit 8f8662f2df

View File

@@ -104,7 +104,7 @@ class Command {
return
}
const lastData =
this.history.length > 0 ? this.history[this.history.length - 1] : null
this.history.length > 0 ? this.history[this.activeHistoryIndex] : null
const data = this.getCopyData()
// 此次数据和上次一样则不重复添加
if (lastData === data) return