Skip to content

Commit 93d40b4

Browse files
authored
fix: 修复换个答案数据类型错误 (#1728)
1 parent 94c5219 commit 93d40b4

File tree

1 file changed

+4
-4
lines changed
  • ui/src/components/ai-chat/component/answer-content

1 file changed

+4
-4
lines changed

ui/src/components/ai-chat/component/answer-content/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ const props = defineProps<{
6161
6262
const chatMessage = (question: string, type: 'old' | 'new', other_params_data?: any) => {
6363
if (type === 'old') {
64-
add_answer_text_list( props.chatRecord.answer_text_list)
64+
add_answer_text_list(props.chatRecord.answer_text_list)
6565
props.sendMessage(question, other_params_data, props.chatRecord)
6666
props.chatManagement.write(props.chatRecord.id)
6767
} else {
6868
props.sendMessage(question, other_params_data)
6969
}
7070
}
71-
const add_answer_text_list=(answer_text_list:Array<string>)=>{
71+
const add_answer_text_list = (answer_text_list: Array<string>) => {
7272
answer_text_list.push('')
7373
}
7474
@@ -82,8 +82,8 @@ function showSource(row: any) {
8282
}
8383
return false
8484
}
85-
const regenerationChart = (question: string) => {
86-
props.sendMessage(question, { rechat: true })
85+
const regenerationChart = (chat: chatType) => {
86+
props.sendMessage(chat.problem_text, { rechat: true })
8787
}
8888
const stopChat = (chat: chatType) => {
8989
props.chatManagement.stop(chat.id)

0 commit comments

Comments
 (0)