fix: The page cannot continue streaming response when changing the conversation name in the conversation reply (#2480)

This commit is contained in:
shaohuzhang1 2025-03-04 14:58:29 +08:00 committed by GitHub
parent 7faa79d361
commit 509055423a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View File

@ -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 {

View File

@ -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
})
}

View File

@ -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(() => {