From 5dcb381428e9a551ae10508428c9e77dcbb37acc Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Fri, 12 Sep 2025 15:38:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=81=9C=E6=AD=A2?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E4=BB=BB=E5=8A=A1=E5=8A=9F=E8=83=BD=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/xt-chat/chat-view/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/xt-chat/chat-view/index.vue b/src/components/xt-chat/chat-view/index.vue index b1eb5c5..51aa4e4 100644 --- a/src/components/xt-chat/chat-view/index.vue +++ b/src/components/xt-chat/chat-view/index.vue @@ -5,7 +5,7 @@ import SenderInput from './components/sender-input/index.vue'; import RightView from './components/right-view/index.vue'; import { useChatStore } from '@/stores/modules/chat'; -import { getConversationList } from '@/api/all/chat'; +import { getConversationList, stopAgentTask } from '@/api/all/chat'; import querySSE from '@/utils/querySSE'; import useChatHandler from './useChatHandler'; import { QUESTION_ROLE, LOADING_ROLE } from './constants'; @@ -58,6 +58,7 @@ export default { if (generateLoading.value) { bubbleListRef.value?.abortTypingByKey(generateTeamRunTaskId.value); sseController.value?.abort?.(); + stopAgentTask({ run_id: generateTeamRunTaskId.value }); } if (showRightView.value) { rightViewRef.value?.abortTyping?.(); @@ -165,7 +166,7 @@ export default {