浏览代码

更改防抖机制

gcz 2 年之前
父节点
当前提交
6a94f451d6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/index.vue

+ 1 - 1
src/views/index.vue

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