mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: The page cannot continue streaming response when changing the conversation name in the conversation reply (#2480)
This commit is contained in:
parent
7faa79d361
commit
509055423a
|
|
@ -181,7 +181,10 @@ function editName(val: string, item: any) {
|
|||
}
|
||||
|
||||
log.asyncPutChatClientLog(applicationDetail.value.id, item.id, obj, loading).then(() => {
|
||||
getChatLog(applicationDetail.value.id)
|
||||
const find = chatLogData.value.find((item: any) => item.id == item.id)
|
||||
if (find) {
|
||||
find.abstract = val
|
||||
}
|
||||
item['writeStatus'] = false
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ const submit = async (formEl: FormInstance | undefined) => {
|
|||
await formEl.validate((valid) => {
|
||||
if (valid) {
|
||||
log.asyncPutChatClientLog(applicationId.value, chatId.value, form.value, loading).then(() => {
|
||||
emit('refresh')
|
||||
emit('refresh', chatId.value, form.value.abstract)
|
||||
dialogVisible.value = false
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -232,8 +232,11 @@ function mouseenter(row: any) {
|
|||
function editLogTitle(row: any) {
|
||||
EditTitleDialogRef.value.open(row, applicationDetail.value.id)
|
||||
}
|
||||
function refreshFieldTitle() {
|
||||
getChatLog(applicationDetail.value.id)
|
||||
function refreshFieldTitle(chatId: string, abstract: string) {
|
||||
const find = chatLogData.value.find((item: any) => item.id == chatId)
|
||||
if (find) {
|
||||
find.abstract = abstract
|
||||
}
|
||||
}
|
||||
function deleteLog(row: any) {
|
||||
log.asyncDelChatClientLog(applicationDetail.value.id, row.id, left_loading).then(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue