vue-scroller
vue-scroller copied to clipboard
多次下拉刷新会执行多次请求
Summary 简述
快速连续下拉刷新2次,会造成多次请求接口。
Expect 期望结果
在一个下拉刷新的动作未结束时(页面回弹之前),重复下拉刷新不会多次请求接口。
Reproduce 重现示例
<scroller :on-infinite="topupInfinite">
async topupInfinite(done) { try { await this.getTopupList(); done(); } catch (error) { } },
调用done才会执行刷新事件,控制好done