From 525667ca6625805e60b0e6e9a07cfe83e40b17c4 Mon Sep 17 00:00:00 2001 From: lzp Date: Thu, 5 Mar 2026 14:34:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95=E7=8A=B6=E6=80=811?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Canvas/FlowCanvas/manager/StateManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)