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

上拉加载问题 #5

Open
zhanghangsuhong opened this issue Feb 12, 2020 · 1 comment
Open

上拉加载问题 #5

zhanghangsuhong opened this issue Feb 12, 2020 · 1 comment

Comments

@zhanghangsuhong
Copy link

先上拉加载一页,然后再下拉刷新一次,再次上拉加载,就不能上拉加载了
(如果先上拉加载>1页,就不会出现上述情况)

@dcloudhdx
Copy link
Contributor

第一次是10条,触发loadmore后记录的数据长度,数据被更新到20条后,记录的仍然是10条,下拉刷新后还是10条
下拉刷新后和上次上拉后的数据长度没有变化,所以没有再次触发loadmore,此时需要调用 this.$refs["list"].resetLoadmore();
参考文档 https://uniapp.dcloud.net.cn/component/list

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

2 participants