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

样式优化等

上级 12a4b13b
...@@ -483,11 +483,7 @@ export default { ...@@ -483,11 +483,7 @@ 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,
...@@ -601,6 +597,8 @@ export default { ...@@ -601,6 +597,8 @@ 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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册