fix: 修复任务窗口无法发送表情的问题

This commit is contained in:
kuaifan 2022-06-07 10:35:22 +08:00
parent 7f5eb59ac5
commit 07a4196ed5
2 changed files with 7 additions and 5 deletions

View File

@ -790,6 +790,7 @@ export default {
return;
}
if (this.taskId > 0) {
//
this.$store.dispatch("openDialog", 0);
}
this.$store.dispatch("openTask", this.dialogData.group_info.id);

View File

@ -1082,7 +1082,7 @@ export default {
this.$refs.upload.handleClick()
},
msgDialog() {
msgDialog(msgText = null) {
if (this.sendLoad > 0) {
return;
}
@ -1106,14 +1106,15 @@ export default {
$A.onBlur();
this.$store.state.dialogMsgTransfer = {
time: $A.Time() + 10,
msgText: this.msgText,
msgRecord: this.msgRecord,
msgFile: this.msgFile,
msgRecord: this.msgRecord
msgText: typeof msgText === 'string' && msgText ? msgText : this.msgText,
};
this.msgRecord = {};
this.msgFile = [];
this.msgText = "";
if (this.dialogId > 0) {
//
this.$store.dispatch("openTask", 0);
}
this.$store.dispatch('openDialog', data.dialog_id)
@ -1183,9 +1184,9 @@ export default {
this.msgDialog()
},
onSend() {
onSend(msgText) {
this.$refs.chatInput && this.$refs.chatInput.hidePopover();
this.msgDialog();
this.msgDialog(msgText);
},
deleteFile(file) {