Commit 312777e5 authored by 华国豪's avatar 华国豪 🙄

1

parent 5507e229
...@@ -177,19 +177,7 @@ export default { ...@@ -177,19 +177,7 @@ export default {
}, },
methods: { methods: {
atMsg(){ atMsg(){
console.log(this.atInfo) this.MsgBus.$emit('send-at-name', this.atInfo.atName)
accids.push({
account: this.atInfo.atId,
alias:'@'+ this.atInfo.atName
})
this.$store.dispatch("sendMsg", {
type: "at",
scene: this.scene,
to: this.to,
text: this.msgToSent,
content: accids,
callbackTeam: this.callBackTeam
});
}, },
showCard(e){ showCard(e){
this.MsgBus.$emit('open-card',this.user.emName,e.clientY,e.clientX) this.MsgBus.$emit('open-card',this.user.emName,e.clientY,e.clientX)
......
...@@ -74,6 +74,9 @@ export default { ...@@ -74,6 +74,9 @@ export default {
} }
}, },
mounted() { mounted() {
this.MsgBus.$on("send-at-name", function(name) {
document.querySelector('#msgEditorBox').innerText = `@${name}`
})
this.initClip(); this.initClip();
let that = this; let that = this;
if(this.members && this.members.length>1){ if(this.members && this.members.length>1){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment