app发送文字消息

This commit is contained in:
2023-09-27 22:16:03 +08:00
parent 72dc5e7cb3
commit 1459ec3656
4 changed files with 9 additions and 6 deletions

View File

@@ -600,6 +600,7 @@ export default {
var msgOnlie = {}
//聊天记录
var msgList = {}
debugger
var url = ''
if (windowType == 'SINGLE') {
msgOnlie = {
@@ -665,7 +666,7 @@ export default {
type: 3
};
var msgSendType = 'wating';
debugger
//开始发送消息
store.dispatch('sendMsg', {
userId: userId,

View File

@@ -36,9 +36,10 @@ export default {
console.log("onP2PMessage " + e);
e = JSON.parse(e)
e.data.pushType="MSG"
const _data=JSON.parse(e.data.messageBody)
e.data.msgContent={
msgType:"TEXT",
content:e.data.messageBody,
content:_data.content,
disturb:false,
top:false,
}