feat: 添加停止代理任务功能并优化样式
This commit is contained in:
@ -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 {
|
||||
<SenderInput
|
||||
v-model={searchValue.value}
|
||||
ref={senderRef}
|
||||
style={{ 'width': 'var(--max-content-width)' }}
|
||||
style={{ width: 'var(--max-content-width)' }}
|
||||
placeholder="继续追问..."
|
||||
loading={generateLoading.value}
|
||||
onSubmit={handleSubmit}
|
||||
|
||||
Reference in New Issue
Block a user