mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复换个答案数据类型错误 (#1728)
This commit is contained in:
parent
94c521967a
commit
93d40b42e0
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue