聊天会话记录
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -600,7 +600,6 @@ export default {
|
||||
var msgOnlie = {}
|
||||
//聊天记录
|
||||
var msgList = {}
|
||||
debugger
|
||||
var url = ''
|
||||
if (windowType == 'SINGLE') {
|
||||
msgOnlie = {
|
||||
@@ -666,7 +665,6 @@ export default {
|
||||
type: 3
|
||||
};
|
||||
var msgSendType = 'wating';
|
||||
debugger
|
||||
//开始发送消息
|
||||
store.dispatch('sendMsg', {
|
||||
userId: userId,
|
||||
|
||||
@@ -28,6 +28,10 @@ export default {
|
||||
onSocketReConnectSuccessEvent: () => {
|
||||
console.log("重连成功");
|
||||
},
|
||||
onOfflineMessage:(e)=>{
|
||||
console.log("====================拉取到离线消息")
|
||||
console.log(e)
|
||||
},
|
||||
onTestMessage: (e) => {
|
||||
console.log("onTestMessage :" + e);
|
||||
store.dispatch('onP2PMessage',e)
|
||||
|
||||
@@ -12,5 +12,6 @@
|
||||
"author": "zmm2113@qq.com",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"localforage": "^1.10.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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]={
|
||||
|
||||
Reference in New Issue
Block a user