瀏覽代碼

update auto load condition

fengchang 1 年之前
父節點
當前提交
94fdcac42d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hichina-main-front/src/views/home/index.vue

+ 1 - 1
hichina-main-front/src/views/home/index.vue

@@ -264,7 +264,7 @@
 
   function getNextBatch() {
     window.onscroll = debounce(function() {
-      let bottomOfWindow = document.documentElement.scrollTop + window.innerHeight > document.documentElement.scrollHeight;
+      let bottomOfWindow = document.documentElement.scrollTop + window.innerHeight + 100 > document.documentElement.scrollHeight;
      
       if(bottomOfWindow){
         loadMore()