|
@@ -224,7 +224,10 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
_handleSend(text) {
|
|
|
- const message = this._createMessage({ content: text });
|
|
|
+ const atUserList=this.$refs.editor.chatArea.getCallUserList();
|
|
|
+ // 将数组中的id提取出来
|
|
|
+ const atUserIds=atUserList.map(item=>item.id);
|
|
|
+ const message = this._createMessage({ content: text,at:atUserIds});
|
|
|
this.appendMessage(message, true);
|
|
|
this._emitSend(message, () => {
|
|
|
this.updateContact({
|
|
@@ -1076,9 +1079,6 @@ export default {
|
|
|
needCallEvery: callEvery
|
|
|
});
|
|
|
},
|
|
|
- getAtUserList() {
|
|
|
- return this.$refs.editor.chatArea.getCallUserList()
|
|
|
- },
|
|
|
setUserTag(data) {
|
|
|
this.$refs.editor.chatArea.setUserTag(data);
|
|
|
this.$refs.editor._checkSubmitDisabled();
|