浏览代码

fix: 无限加载无数据触发scrollChange逻辑修复

richard1015 5 年之前
父节点
当前提交
93958a4383
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/packages/infiniteloading/infiniteloading.vue

+ 1 - 1
src/packages/infiniteloading/infiniteloading.vue

@@ -107,7 +107,7 @@ export default {
 
         handleScroll() {
             this.requestAniFrame()(() => {
-                if (!this.hasMore || !this.isScrollAtBottom() || this.isLoading || !this.isShowMod) {
+                if (!this.isScrollAtBottom() || !this.hasMore || this.isLoading || !this.isShowMod) {
                     return false;
                 } else {
                     this.$emit('loadmore');