Explorar o código

更改防抖机制

gcz %!s(int64=2) %!d(string=hai) anos
pai
achega
6a94f451d6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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){