mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 19:23:26 +00:00
fix: 修复任务窗口无法发送表情的问题
This commit is contained in:
parent
7f5eb59ac5
commit
07a4196ed5
@ -790,6 +790,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.taskId > 0) {
|
if (this.taskId > 0) {
|
||||||
|
// 如果当前打开着任务窗口则关闭对话窗口
|
||||||
this.$store.dispatch("openDialog", 0);
|
this.$store.dispatch("openDialog", 0);
|
||||||
}
|
}
|
||||||
this.$store.dispatch("openTask", this.dialogData.group_info.id);
|
this.$store.dispatch("openTask", this.dialogData.group_info.id);
|
||||||
|
|||||||
@ -1082,7 +1082,7 @@ export default {
|
|||||||
this.$refs.upload.handleClick()
|
this.$refs.upload.handleClick()
|
||||||
},
|
},
|
||||||
|
|
||||||
msgDialog() {
|
msgDialog(msgText = null) {
|
||||||
if (this.sendLoad > 0) {
|
if (this.sendLoad > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1106,14 +1106,15 @@ export default {
|
|||||||
$A.onBlur();
|
$A.onBlur();
|
||||||
this.$store.state.dialogMsgTransfer = {
|
this.$store.state.dialogMsgTransfer = {
|
||||||
time: $A.Time() + 10,
|
time: $A.Time() + 10,
|
||||||
msgText: this.msgText,
|
msgRecord: this.msgRecord,
|
||||||
msgFile: this.msgFile,
|
msgFile: this.msgFile,
|
||||||
msgRecord: this.msgRecord
|
msgText: typeof msgText === 'string' && msgText ? msgText : this.msgText,
|
||||||
};
|
};
|
||||||
this.msgRecord = {};
|
this.msgRecord = {};
|
||||||
this.msgFile = [];
|
this.msgFile = [];
|
||||||
this.msgText = "";
|
this.msgText = "";
|
||||||
if (this.dialogId > 0) {
|
if (this.dialogId > 0) {
|
||||||
|
// 如果当前打开着对话窗口则关闭任务窗口
|
||||||
this.$store.dispatch("openTask", 0);
|
this.$store.dispatch("openTask", 0);
|
||||||
}
|
}
|
||||||
this.$store.dispatch('openDialog', data.dialog_id)
|
this.$store.dispatch('openDialog', data.dialog_id)
|
||||||
@ -1183,9 +1184,9 @@ export default {
|
|||||||
this.msgDialog()
|
this.msgDialog()
|
||||||
},
|
},
|
||||||
|
|
||||||
onSend() {
|
onSend(msgText) {
|
||||||
this.$refs.chatInput && this.$refs.chatInput.hidePopover();
|
this.$refs.chatInput && this.$refs.chatInput.hidePopover();
|
||||||
this.msgDialog();
|
this.msgDialog(msgText);
|
||||||
},
|
},
|
||||||
|
|
||||||
deleteFile(file) {
|
deleteFile(file) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user