Commit 12c21347 by lijiabin

【需求 22051】 feat: 优化流程

parent cbf77edb
......@@ -126,6 +126,15 @@ const selectConversation = async (item: ConversationItem, shouldScrollToBottom =
await nextTick()
scrollToBottom()
}
// 刷新active的content
const lastItem = messageDetailList.value.at(-1)
if (lastItem) {
const index = conversationList.value.findIndex((i) => i.id === activeConversationId.value)
if (index !== -1) {
conversationList.value[index]!.last_message = lastItem.content
}
}
}
watch(
......@@ -219,8 +228,8 @@ const onMessageMenu = async (cmd: string | number, message: MessageDetailListIte
if (!message.is_self) return
await confirm({
title: '撤回消息',
message: '确定删除这条消息?',
confirmText: '删除',
message: '确定撤回这条消息?',
confirmText: '撤回',
cancelText: '取消',
type: 'warning',
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment