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

点击下方按钮,也去看看您的学习报告吧。

上级 8ffa5326
...@@ -184,8 +184,13 @@ export default { ...@@ -184,8 +184,13 @@ export default {
this.historyTime = res.data[res.data.length - 1].timestamp; this.historyTime = res.data[res.data.length - 1].timestamp;
arr = this.dataconcatHandle(res.data.reverse()); arr = this.dataconcatHandle(res.data.reverse());
this.detailData.unshift(...arr); this.detailData.unshift(...arr);
let el = this.getElmByID('scroll-set'); this.$forceUpdate();
el.scrollTop = 500; if(param == 1) {
setTimeout(() => {
let el = this.getElmByID('scroll-set');
el.scrollTop = 20000;
}, 100);
}
}else { }else {
this.hasHistoryData = false; this.hasHistoryData = false;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册