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

解决未读问题

左侧消息问题
上级 a076ad70
......@@ -287,6 +287,13 @@ export default {
},
deep: true
},
currentSession: {
handler(sSession) {
console.log('in currentSession watch!!!!!');
this.readAllMsg();
},
deep: true
}
},
created() {
......@@ -768,13 +775,8 @@ export default {
cc;
sessions.forEach((session, index) => {
if (session.lastMsgType.toLowerCase() == "custom") {
text = "";
cc = JSON.parse(session.lastMsgContent);
if (cc.showType == 1) {
text = cc.title || cc.name;
} else {
text = cc.content || cc.name;
}
text = cc.suffix || cc.content || cc.title || cc.name;
} else if (
session.lastMsgType.toLowerCase() == "image" ||
session.lastMsgType.toLowerCase() == "picture"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册