mirror of
https://gitee.com/lijingbo-2021/open-anylink-web.git
synced 2026-05-15 19:57:57 +00:00
groupcard和通讯录可以调整到群组的聊天窗口
This commit is contained in:
@@ -356,6 +356,12 @@ const pullMsg = async (mode = 0, ref = -1) => {
|
||||
const handleSelectedSession = async (sessionId) => {
|
||||
if (selectedSessionId.value !== sessionId) {
|
||||
selectedSessionId.value = sessionId
|
||||
router.push({
|
||||
path: '/message',
|
||||
query: {
|
||||
sessionId: sessionId
|
||||
}
|
||||
})
|
||||
initSession(sessionId)
|
||||
locateSession(sessionId)
|
||||
|
||||
@@ -600,6 +606,15 @@ watch(
|
||||
}
|
||||
)
|
||||
|
||||
watch(
|
||||
() => router.currentRoute.value.query.sessionId,
|
||||
(newValue) => {
|
||||
if (newValue) {
|
||||
handleSelectedSession(newValue)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
const sessionItemRefCollection = ref({})
|
||||
const setSessionItemRef = (sessionId, el) => {
|
||||
sessionItemRefCollection.value[sessionId] = el
|
||||
|
||||
Reference in New Issue
Block a user