let id = WebIM.conn.getUniqueId();
let msg = new WebIM.message(msgType.TEXT, id);
//console.log(this.userMessage)
//console.log(this.username)
//console.log(this.username.myName)
//console.log(this.getSendToParam())
//console.log( this.chatType)
msg.set({
msg: this.userMessage,
from: this.username.myName,
to: this.getSendToParam(),
roomType: false,
chatType: this.chatType,
success(id, serverMsgId) {
let obj = {
msg: msg,
type: msgType.TEXT,
};
obj.msg.id = serverMsgId
me.saveSendMsg(obj);
//console.log("成功了");
// 关闭表情弹窗
me.$parent.cancelEmoji()
me.$emit("inputFocused");
disp.fire("em.chat.sendSuccess", id, me.userMessage);
},
fail(id, serverMsgId) {
console.log(id)
console.log(serverMsgId)
console.log("失败了");
},
});
katiy (作者)
好的,感谢
2023-02-01 09:28