mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-21 07:50:30 +00:00
fix: 未聊天过的任务无法发送聊天表情
This commit is contained in:
parent
05b05883fd
commit
9ca6cb4fe4
@ -1267,7 +1267,7 @@ export default {
|
|||||||
//
|
//
|
||||||
if ($A.isSubElectron) {
|
if ($A.isSubElectron) {
|
||||||
this.resizeDialog().then(() => {
|
this.resizeDialog().then(() => {
|
||||||
this.sendDialogMsg();
|
this.sendDialogMsg(msgText);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@ -1288,7 +1288,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$store.dispatch('openDialog', data.dialog_id)
|
this.$store.dispatch('openDialog', data.dialog_id)
|
||||||
} else {
|
} else {
|
||||||
this.sendDialogMsg();
|
this.sendDialogMsg(msgText);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1303,7 +1303,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
sendDialogMsg() {
|
sendDialogMsg(msgText = null) {
|
||||||
if (this.msgFile.length > 0) {
|
if (this.msgFile.length > 0) {
|
||||||
this.$refs.dialog.sendFileMsg(this.msgFile.map(file => Object.assign(file, {
|
this.$refs.dialog.sendFileMsg(this.msgFile.map(file => Object.assign(file, {
|
||||||
ajaxExtraData: {
|
ajaxExtraData: {
|
||||||
@ -1312,6 +1312,8 @@ export default {
|
|||||||
})));
|
})));
|
||||||
} else if (this.msgText) {
|
} else if (this.msgText) {
|
||||||
this.$refs.dialog.sendMsg(this.msgText);
|
this.$refs.dialog.sendMsg(this.msgText);
|
||||||
|
} else if (typeof msgText === 'string' && msgText) {
|
||||||
|
this.$refs.dialog.sendMsg(msgText);
|
||||||
}
|
}
|
||||||
this.msgFile = [];
|
this.msgFile = [];
|
||||||
this.msgText = "";
|
this.msgText = "";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user