聊天会话记录

This commit is contained in:
2023-09-28 20:27:54 +08:00
parent 1459ec3656
commit 7aa2e17897
20 changed files with 95 additions and 142 deletions

View File

@@ -66,7 +66,6 @@ import { createStore } from 'vuex'
console.log("========================")
console.log("========================")
console.error(data)
debugger
_im.sendP2PMessage(_im.createP2PTextMessage(data.userId,data.data.content))
},
updateChatDataState(context,data){
@@ -147,6 +146,7 @@ import { createStore } from 'vuex'
console.log("data.userId:",data.userId)
var userId=data.userId
var windowType=data.windowType
//初始化聊天记录
var data2=publicFc.getKeyObjectStorage(context.state.userInfo.userId+'_'+'chatlistData')
if(!data2[userId]){
@@ -166,6 +166,10 @@ import { createStore } from 'vuex'
// })
_im.getSingleUserInfo(userId).then((res)=>{
console.log(res.data)
console.log(res.data)
console.log(res.data)
console.log(res.data)
if (res.code == 200) {
var detail=res.data
data1[userId]={