mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-07 18:07:05 +00:00
fix: 从任务窗口发送聊天输入缓存的问题
This commit is contained in:
parent
9a12184f9b
commit
ce76f2d817
@ -1299,12 +1299,13 @@ export default {
|
||||
this.msgRecord = {};
|
||||
this.msgFile = [];
|
||||
this.msgText = "";
|
||||
if (this.dialogId > 0) {
|
||||
// 如果当前打开着对话窗口则关闭任务窗口
|
||||
this.$store.dispatch("openTask", 0);
|
||||
}
|
||||
this.$store.dispatch('openDialog', data.dialog_id).then(_ => {
|
||||
this.$store.state.dialogMsgTransfer = transferData
|
||||
this.$nextTick(_ => {
|
||||
if (this.dialogId > 0) {
|
||||
this.$store.dispatch("openTask", 0) // 如果当前打开着对话窗口则关闭任务窗口
|
||||
}
|
||||
this.$store.dispatch('openDialog', data.dialog_id).then(_ => {
|
||||
this.$store.state.dialogMsgTransfer = transferData
|
||||
})
|
||||
})
|
||||
} else {
|
||||
this.sendDialogMsg(msgText);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user