【增加】增加对话切换

pull/449/head^2
cherishsince 2024-05-16 00:28:24 +08:00
parent f14032d69d
commit da66aead54
1 changed files with 10 additions and 1 deletions

View File

@ -26,7 +26,7 @@
<div>
<el-text class="mx-1" size="small" tag="b">置顶</el-text>
</div>
<el-row v-for="conversation in conversationList" :key="conversation.id">
<el-row v-for="conversation in conversationList" :key="conversation.id" @click="handleConversationClick(conversation.id)">
<div
:class="conversation.id === conversationId ? 'conversation active' : 'conversation'"
@click="changeConversation(conversation.id)"
@ -528,6 +528,15 @@ const getChatConversationList = async () => {
}
}
//
const handleConversationClick = async (id: number) => {
//
conversationId.value = id
console.log('conversationId.value', conversationId.value)
//
await messageList()
}
/** 初始化 **/
onMounted(async () => {
//