Procházet zdrojové kódy

update auto load condition

fengchang před 1 rokem
rodič
revize
94fdcac42d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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()