新增:对话页面

This commit is contained in:
安浩浩
2024-04-27 23:10:03 +08:00
parent de27cfa8f6
commit a7e8433b27
33 changed files with 4008 additions and 91 deletions

View File

@ -4,6 +4,24 @@ import SearchInput from '@/components/SearchInput/index.vue'
/* 欢迎页 */
import Welcome from '@/components/Welcome/index.vue'
import ConversationList from '../Conversation/components/ConversationList.vue'
import router from '@/router'
//路由跳转-系统通知
const toInformDetails = () => {
router.push('/im/conversation/informDetails')
}
//路由跳转-对应好友会话
const toChatMessage = (id, chatType) => {
console.log('>>>>>>>id', id)
router.push({
path: '/im/conversation/message',
query: {
id,
chatType
}
})
}
</script>
<template>
<el-container style="height: 100%">
@ -11,7 +29,7 @@ import ConversationList from '../Conversation/components/ConversationList.vue'
<!-- 搜索组件 -->
<SearchInput :searchType="'conversation'" />
<div class="chat_conversation_list">
<ConversationList />
<ConversationList @toInformDetails="toInformDetails" @toChatMessage="toChatMessage" />
</div>
</el-aside>
<el-main class="chat_conversation_main_box">