fix: 修复停止按钮点击后不恢复为发送按钮的bug
修复了运行期间点击停止按钮后,按钮状态无法恢复的问题。 问题原因: - stopTask() 方法中 stopRequested 被设置为 true 但未重置 - composerBusy 计算属性依赖 stopRequested 状态 - 导致按钮持续显示停止图标,需要刷新页面才能恢复 修复方案: - 在 stopTask() 的 finally 块中重置 stopRequested 为 false - 确保无论成功或失败,状态都能正确恢复 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
aeb782d479
commit
b474a69b3b
@ -292,8 +292,9 @@ export const messageMethods = {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
});
|
});
|
||||||
} finally {
|
} finally {
|
||||||
// 确保清除 dropToolEvents 标志
|
// 确保清除 dropToolEvents 和 stopRequested 标志
|
||||||
this.dropToolEvents = false;
|
this.dropToolEvents = false;
|
||||||
|
this.stopRequested = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user