Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

滚动到底部加载一次后,就开始无限加载,直至全部加载完成bug #135

Open
Binlu opened this issue Nov 9, 2019 · 0 comments

Comments

@Binlu
Copy link

Binlu commented Nov 9, 2019

只要加载一次后,就加载所有的数据,这显示不是我们想要的。
解决方案:分步骤

直接上代码
setTimeout(() => {
this.isGetList=false; //设置监听
//关键的来了,解决加载一次后,下次滚动不能加载的问题(只能回退一下才能继续加载),this.scrollEle为滚动的元素。
if(scrollTop>0){
this.scrollEle.scrollTo(0,scrollTop)
}
},100)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant