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

bug修改

上级 caf37868
...@@ -596,25 +596,19 @@ export default { ...@@ -596,25 +596,19 @@ export default {
text = ""; text = "";
cc = JSON.parse(session.lastMsgContent); cc = JSON.parse(session.lastMsgContent);
if (cc.showType == 1) { if (cc.showType == 1) {
text = cc.title; text = cc.title || cc.name;
// } else if (cc.showType == 18) {
} else { } else {
text = cc.content || cc.name; text = cc.content || cc.name;
} }
// if (cc.showType != 8) {
// text = `${text}`;
// }
} else if ( } else if (
session.lastMsgType.toLowerCase() == "image" || session.lastMsgType.toLowerCase() == "image" ||
session.lastMsgType.toLowerCase() == "picture" session.lastMsgType.toLowerCase() == "picture"
) { ) {
text = "[图片]"; text = "[图片]";
// text = this.imagePlaceholder;
} else { } else {
text = session.lastMsgContent; text = session.lastMsgContent;
} }
session.text = text; session.text = text;
// s.unreadCount = sessions[0].unread;
convertSessionList.push(session); convertSessionList.push(session);
}); });
this.sessionListData.sessionList = convertSessionList; this.sessionListData.sessionList = convertSessionList;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册