提交 c3e9f98c 编写于 作者: guangjun.yang's avatar guangjun.yang

向下读取时,有数据就调用readAll

上级 8760a496
...@@ -287,13 +287,6 @@ export default { ...@@ -287,13 +287,6 @@ export default {
}, },
deep: true deep: true
}, },
currentSession: {
handler(sSession) {
console.log('in currentSession watch!!!!!');
this.readAllMsg();
},
deep: true
}
}, },
created() { created() {
...@@ -495,7 +488,7 @@ export default { ...@@ -495,7 +488,7 @@ export default {
this.POST("/im/msg/forward", params).then(res => { this.POST("/im/msg/forward", params).then(res => {
if (res.code === "000000") { if (res.code === "000000") {
this.convertMessageList(res.data, 2); this.convertMessageList(res.data, 2);
if(this.currentSession.unreadCount) { if(res.data.length) {
this.readAllMsg(); this.readAllMsg();
} }
} else { } else {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册