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

优化样式等

上级 4d8d63ad
...@@ -483,7 +483,11 @@ export default { ...@@ -483,7 +483,11 @@ export default {
}; };
this.POST("/im/msg/history", params).then(res => { this.POST("/im/msg/history", params).then(res => {
if (res.code === "000000") { if (res.code === "000000") {
this.messageList = [];
this.$forceUpdate();
setTimeout( () => {
this.convertMessageList(res.data, 1); this.convertMessageList(res.data, 1);
}, 1000);
} else { } else {
this.$message({ this.$message({
message: res.message, message: res.message,
...@@ -597,8 +601,6 @@ export default { ...@@ -597,8 +601,6 @@ export default {
}); });
if (directFlag === 1) { if (directFlag === 1) {
this.messageList = [];
this.$forceUpdate();
forwardMsgIntervalId && clearInterval(forwardMsgIntervalId); forwardMsgIntervalId && clearInterval(forwardMsgIntervalId);
this.messageList = cMessageList; this.messageList = cMessageList;
this.$forceUpdate(); this.$forceUpdate();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册