fix: 修复换个答案数据类型错误 (#1728)

This commit is contained in:
shaohuzhang1 2024-12-02 11:13:51 +08:00 committed by GitHub
parent 94c521967a
commit 93d40b42e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<string>)=>{
const add_answer_text_list = (answer_text_list: Array<string>) => {
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)