diff --git a/ui/src/components/ai-chat/component/answer-content/index.vue b/ui/src/components/ai-chat/component/answer-content/index.vue index 532869633..a0f1ee0d4 100644 --- a/ui/src/components/ai-chat/component/answer-content/index.vue +++ b/ui/src/components/ai-chat/component/answer-content/index.vue @@ -61,14 +61,14 @@ const props = defineProps<{ const chatMessage = (question: string, type: 'old' | 'new', other_params_data?: any) => { if (type === 'old') { - add_answer_text_list( props.chatRecord.answer_text_list) + add_answer_text_list(props.chatRecord.answer_text_list) props.sendMessage(question, other_params_data, props.chatRecord) props.chatManagement.write(props.chatRecord.id) } else { props.sendMessage(question, other_params_data) } } -const add_answer_text_list=(answer_text_list:Array)=>{ +const add_answer_text_list = (answer_text_list: Array) => { answer_text_list.push('') } @@ -82,8 +82,8 @@ function showSource(row: any) { } return false } -const regenerationChart = (question: string) => { - props.sendMessage(question, { rechat: true }) +const regenerationChart = (chat: chatType) => { + props.sendMessage(chat.problem_text, { rechat: true }) } const stopChat = (chat: chatType) => { props.chatManagement.stop(chat.id)