From 6faeee3042847c67f2d639ec41abe7910d9386a6 Mon Sep 17 00:00:00 2001 From: digua Date: Wed, 27 May 2026 20:14:16 +0800 Subject: [PATCH] fix(ui): make batch summary stop button respond immediately Previously clicking stop would only take effect after the current LLM request finished. Now the UI state updates instantly while the in-flight request completes silently in the background. Co-authored-by: Cursor --- src/components/common/ChatRecord/BatchSummaryModal.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/common/ChatRecord/BatchSummaryModal.vue b/src/components/common/ChatRecord/BatchSummaryModal.vue index 13526523..c5785e0b 100644 --- a/src/components/common/ChatRecord/BatchSummaryModal.vue +++ b/src/components/common/ChatRecord/BatchSummaryModal.vue @@ -330,9 +330,10 @@ async function startGenerate() { } } -// 停止生成 +// 停止生成:立即更新 UI 状态,后台请求自然结束不影响 function stopGenerate() { shouldStop.value = true + isGenerating.value = false } // 关闭弹窗