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