客户端消息发送

This commit is contained in:
2023-09-25 19:15:47 +08:00
parent daa9c98598
commit 161631f6a0
22 changed files with 153 additions and 359 deletions

View File

@@ -49,6 +49,8 @@ let observer = null;
import favorites from '../favorites/index.vue';
import chatItem from './chat-item.vue';
import sendCard from './sendCard.vue';
export default {
components: {
chatItem,
@@ -627,18 +629,26 @@ export default {
if (!e) {
return;
}
this.$fc.pushOutMsg({
/*
this.$fc.pushOutMsg({
msgContent: e,
msgType: msgType,
windowType: this.talkTo.windowType,
userId: this.talkTo.userId
});
this.msg = '';
this.msg = '';
*/
// #ifdef H5
this.msgFocus = false;
this.$nextTick(() => {
this.msgFocus = true;
});
console.log("==============sdk:")
console.log(this.talkTo.userId)
this.imsdk.lim.im.sendP2PMessage(this.imsdk.lim.im.createP2PTextMessage(this.talkTo.userId, e))
// #endif
},
startRecognize() {