|
@@ -9,7 +9,7 @@
|
|
|
<template #title>
|
|
|
<div class="text-2xl text-black-3 text-semibold flex items-center">
|
|
|
<div style="min-width: 50px; max-width: 200px" class="inline-block line-clamp-1">
|
|
|
- {{ groupRemark }}
|
|
|
+ {{ memberInfo?.groupRemark }}
|
|
|
</div>
|
|
|
<span
|
|
|
v-if="memberInfo?.isNotDisturb"
|
|
@@ -83,7 +83,6 @@ const { userInfo } = storeToRefs(userInfoStore)
|
|
|
|
|
|
// 对方成员的信息
|
|
|
const memberInfo = ref({})
|
|
|
-const groupRemark = ref(route.query?.groupRemark)
|
|
|
|
|
|
// 聊天列表
|
|
|
const chatListRef = ref(null)
|
|
@@ -182,7 +181,7 @@ const sendTextMessage = async (text) => {
|
|
|
}
|
|
|
}
|
|
|
const isLink = !!findHyperlinks(text)
|
|
|
- if (isLink) msg.messageType = 0;
|
|
|
+ if (isLink) msg.messageType = 0
|
|
|
console.log(currConversationChatList.value, '1122')
|
|
|
currConversationChatList.value.push(msg)
|
|
|
await scrollToBottom()
|
|
@@ -351,12 +350,12 @@ onMounted(() => {
|
|
|
watchEffect(() => {})
|
|
|
|
|
|
// 会话好友的信息
|
|
|
-const getAnnouncement = () => {
|
|
|
+const getAnnouncement = () => {
|
|
|
return new Promise((resolve) => {
|
|
|
request('/website/tourMember/getOneWayMember', {
|
|
|
query: { groupId: groupId.value }
|
|
|
}).then(({ data = [] }) => {
|
|
|
- resolve(data.find((o) => o.partnerId === getUserId.value) ?? {})
|
|
|
+ resolve(data.find((o) => o.userId === userInfo.value.userId) ?? {})
|
|
|
})
|
|
|
})
|
|
|
}
|