Browse Source

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

richard1015 5 years ago
parent
commit
93958a4383
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/infiniteloading/infiniteloading.vue

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

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