记录状态1

This commit is contained in:
lzp
2026-03-05 14:34:41 +08:00
parent 710bd0c30e
commit 525667ca66

View File

@@ -135,7 +135,7 @@ export class StateManager {
/** 记录状态 */
recordState() {
if (this.historyIndex.value < this.historyList.value.length - 1) {
this.historyList.value.splice(this.historyIndex.value)
this.historyList.value.splice(this.historyIndex.value + 1)
}
const state = {
nodes: JSON.stringify(this.nodes.value)