Pārlūkot izejas kodu

更改防抖机制

gcz 2 gadi atpakaļ
vecāks
revīzija
6a94f451d6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/views/index.vue

+ 1 - 1
src/views/index.vue

@@ -203,7 +203,7 @@
         this.getPageData();
       },
       getPageData(){
-        debounce(this.debounceGetData, 500, false)
+        debounce(this.debounceGetData, 1000, true)
       },
       debounceGetData(){
         if(this.page==1){