mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-16 20:18:10 +00:00
perf: 回复或修改消息发送时立即隐藏引用显示
This commit is contained in:
parent
e861e8d878
commit
c3cccbb2c8
@ -738,6 +738,9 @@ export default {
|
|||||||
key: `msg-${update_id}`,
|
key: `msg-${update_id}`,
|
||||||
delay: 600
|
delay: 600
|
||||||
})
|
})
|
||||||
|
this.replyActiveId = 0;
|
||||||
|
this.onActive();
|
||||||
|
//
|
||||||
this.$store.dispatch("call", {
|
this.$store.dispatch("call", {
|
||||||
url: 'dialog/msg/sendtext',
|
url: 'dialog/msg/sendtext',
|
||||||
data: {
|
data: {
|
||||||
@ -773,14 +776,15 @@ export default {
|
|||||||
}
|
}
|
||||||
this.tempMsgs.push(tempMsg)
|
this.tempMsgs.push(tempMsg)
|
||||||
this.msgType = ''
|
this.msgType = ''
|
||||||
|
this.replyActiveId = 0;
|
||||||
this.onActive();
|
this.onActive();
|
||||||
this.$nextTick(this.onToBottom)
|
this.$nextTick(this.onToBottom)
|
||||||
//
|
//
|
||||||
this.$store.dispatch("call", {
|
this.$store.dispatch("call", {
|
||||||
url: 'dialog/msg/sendtext',
|
url: 'dialog/msg/sendtext',
|
||||||
data: {
|
data: {
|
||||||
dialog_id: this.dialogId,
|
dialog_id: tempMsg.dialog_id,
|
||||||
reply_id: this.replyId,
|
reply_id: tempMsg.reply_id,
|
||||||
text: msgText,
|
text: msgText,
|
||||||
},
|
},
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@ -1009,6 +1013,7 @@ export default {
|
|||||||
userid: this.userId,
|
userid: this.userId,
|
||||||
msg: { },
|
msg: { },
|
||||||
})
|
})
|
||||||
|
this.replyActiveId = 0;
|
||||||
this.onActive()
|
this.onActive()
|
||||||
this.$nextTick(this.onToBottom)
|
this.$nextTick(this.onToBottom)
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user