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(() => {
|
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
|
item['writeStatus'] = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -75,7 +75,7 @@ const submit = async (formEl: FormInstance | undefined) => {
|
|||||||
await formEl.validate((valid) => {
|
await formEl.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
log.asyncPutChatClientLog(applicationId.value, chatId.value, form.value, loading).then(() => {
|
log.asyncPutChatClientLog(applicationId.value, chatId.value, form.value, loading).then(() => {
|
||||||
emit('refresh')
|
emit('refresh', chatId.value, form.value.abstract)
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -232,8 +232,11 @@ function mouseenter(row: any) {
|
|||||||
function editLogTitle(row: any) {
|
function editLogTitle(row: any) {
|
||||||
EditTitleDialogRef.value.open(row, applicationDetail.value.id)
|
EditTitleDialogRef.value.open(row, applicationDetail.value.id)
|
||||||
}
|
}
|
||||||
function refreshFieldTitle() {
|
function refreshFieldTitle(chatId: string, abstract: string) {
|
||||||
getChatLog(applicationDetail.value.id)
|
const find = chatLogData.value.find((item: any) => item.id == chatId)
|
||||||
|
if (find) {
|
||||||
|
find.abstract = abstract
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function deleteLog(row: any) {
|
function deleteLog(row: any) {
|
||||||
log.asyncDelChatClientLog(applicationDetail.value.id, row.id, left_loading).then(() => {
|
log.asyncDelChatClientLog(applicationDetail.value.id, row.id, left_loading).then(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user