提交 8bad3dc8 编写于 作者: guangjun.yang's avatar guangjun.yang

上翻页有问题

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