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

刷新问题

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