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

刷新问题

上级 ab6dee27
...@@ -597,12 +597,17 @@ export default { ...@@ -597,12 +597,17 @@ 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();
setTimeout( () => {
this.$nextTick(() => { this.$nextTick(() => {
const scrollBoxDom = document.querySelector(".scroll-box"); const scrollBoxDom = document.querySelector(".scroll-box");
scrollBoxDom.scrollTop = scrollBoxDom.scrollHeight; scrollBoxDom.scrollTop = scrollBoxDom.scrollHeight;
}); });
}, 100);
this.currentContinueTimes = this.currentContinueTimes =
this.sessionListData.currentTimestamp - this.sessionListData.currentTimestamp -
this.currentSession.handleStartTime; this.currentSession.handleStartTime;
...@@ -690,7 +695,6 @@ export default { ...@@ -690,7 +695,6 @@ export default {
// 选择一个会话 // 选择一个会话
selectSession(session, index) { selectSession(session, index) {
this.messageList = [];
// 点击当前的,不再重新请求数据 // 点击当前的,不再重新请求数据
if (this.currentTaskLogId == session.taskLogId) return; if (this.currentTaskLogId == session.taskLogId) return;
this.currentTaskLogId = session.taskLogId; this.currentTaskLogId = session.taskLogId;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册