From b474a69b3b181680c5c85d0fa2bf31fdc470139a Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Sat, 4 Apr 2026 14:47:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=81=9C=E6=AD=A2?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=82=B9=E5=87=BB=E5=90=8E=E4=B8=8D=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E4=B8=BA=E5=8F=91=E9=80=81=E6=8C=89=E9=92=AE=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了运行期间点击停止按钮后,按钮状态无法恢复的问题。 问题原因: - stopTask() 方法中 stopRequested 被设置为 true 但未重置 - composerBusy 计算属性依赖 stopRequested 状态 - 导致按钮持续显示停止图标,需要刷新页面才能恢复 修复方案: - 在 stopTask() 的 finally 块中重置 stopRequested 为 false - 确保无论成功或失败,状态都能正确恢复 Co-Authored-By: Claude Sonnet 4.5 --- static/src/app/methods/message.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/src/app/methods/message.ts b/static/src/app/methods/message.ts index 742a95c..519fb69 100644 --- a/static/src/app/methods/message.ts +++ b/static/src/app/methods/message.ts @@ -292,8 +292,9 @@ export const messageMethods = { type: 'warning' }); } finally { - // 确保清除 dropToolEvents 标志 + // 确保清除 dropToolEvents 和 stopRequested 标志 this.dropToolEvents = false; + this.stopRequested = false; } },