diff --git a/src/components/Canvas/FlowCanvas/manager/StateManager.ts b/src/components/Canvas/FlowCanvas/manager/StateManager.ts index ca9634c..503b063 100644 --- a/src/components/Canvas/FlowCanvas/manager/StateManager.ts +++ b/src/components/Canvas/FlowCanvas/manager/StateManager.ts @@ -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)