mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
no message
This commit is contained in:
parent
3aa90f7006
commit
d64705ab32
@ -289,9 +289,9 @@ export default {
|
|||||||
|
|
||||||
sendSuccess(data) {
|
sendSuccess(data) {
|
||||||
this.$store.dispatch("saveDialogMsg", data);
|
this.$store.dispatch("saveDialogMsg", data);
|
||||||
this.$store.dispatch("updateDialogLastMsg", data);
|
|
||||||
this.$store.dispatch("moveDialogTop", this.dialogId);
|
|
||||||
this.$store.dispatch("increaseTaskMsgNum", this.dialogId);
|
this.$store.dispatch("increaseTaskMsgNum", this.dialogId);
|
||||||
|
this.$store.dispatch("moveDialogTop", this.dialogId);
|
||||||
|
this.$store.dispatch("updateDialogLastMsg", data);
|
||||||
},
|
},
|
||||||
|
|
||||||
chatScroll(res) {
|
chatScroll(res) {
|
||||||
|
|||||||
16
resources/assets/js/store/actions.js
vendored
16
resources/assets/js/store/actions.js
vendored
@ -1379,12 +1379,12 @@ export default {
|
|||||||
// 更新消息列表
|
// 更新消息列表
|
||||||
state.dialogMsgPush = data;
|
state.dialogMsgPush = data;
|
||||||
dispatch("saveDialogMsg", data)
|
dispatch("saveDialogMsg", data)
|
||||||
if (mode === "chat") {
|
if (mode === "add" || mode === "chat") {
|
||||||
return;
|
// 新增任务消息数量
|
||||||
}
|
dispatch("increaseTaskMsgNum", dialog_id);
|
||||||
// 更新最后消息
|
if (mode === "chat") {
|
||||||
dispatch("updateDialogLastMsg", data);
|
return;
|
||||||
if (mode === "add") {
|
}
|
||||||
let dialog = state.dialogs.find(({id}) => id == data.dialog_id);
|
let dialog = state.dialogs.find(({id}) => id == data.dialog_id);
|
||||||
// 更新对话列表
|
// 更新对话列表
|
||||||
if (dialog) {
|
if (dialog) {
|
||||||
@ -1393,9 +1393,9 @@ export default {
|
|||||||
// 移动到首位
|
// 移动到首位
|
||||||
dispatch("moveDialogTop", dialog_id);
|
dispatch("moveDialogTop", dialog_id);
|
||||||
}
|
}
|
||||||
// 新增任务消息数量
|
|
||||||
dispatch("increaseTaskMsgNum", dialog_id);
|
|
||||||
}
|
}
|
||||||
|
// 更新最后消息
|
||||||
|
dispatch("updateDialogLastMsg", data);
|
||||||
})(msgDetail);
|
})(msgDetail);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user