优化任务详情窗口聊天
This commit is contained in:
parent
59b98209ac
commit
0a393845e9
@ -1025,10 +1025,13 @@ export default {
|
|||||||
$A.setStorage("messenger::dialogId", data.dialog_id)
|
$A.setStorage("messenger::dialogId", data.dialog_id)
|
||||||
this.$store.state.dialogOpenId = data.dialog_id;
|
this.$store.state.dialogOpenId = data.dialog_id;
|
||||||
this.$store.dispatch('openTask', 0);
|
this.$store.dispatch('openTask', 0);
|
||||||
|
this.msgText = "";
|
||||||
} else {
|
} else {
|
||||||
this.$refs.dialog.sendMsg(this.msgText);
|
this.$nextTick(() => {
|
||||||
|
this.$refs.dialog.sendMsg(this.msgText);
|
||||||
|
this.msgText = "";
|
||||||
|
})
|
||||||
}
|
}
|
||||||
this.msgText = "";
|
|
||||||
});
|
});
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
@ -1125,8 +1128,10 @@ export default {
|
|||||||
if (this.$refs.dialog || num > 20) {
|
if (this.$refs.dialog || num > 20) {
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
if (this.$refs.dialog) {
|
if (this.$refs.dialog) {
|
||||||
this.$refs.dialog.sendMsg(this.msgText);
|
this.$nextTick(() => {
|
||||||
this.msgText = "";
|
this.$refs.dialog.sendMsg(this.msgText);
|
||||||
|
this.msgText = "";
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user