Explorar el Código

更改抖动参数

gcz hace 2 años
padre
commit
58ef422df9
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/views/index.vue

+ 3 - 2
src/views/index.vue

@@ -3,7 +3,7 @@
  * @Author: wangcc
  * @Author: wangcc
  * @Date: 2022-07-06 15:56:45
  * @Date: 2022-07-06 15:56:45
  * @LastEditors: gcz
  * @LastEditors: gcz
- * @LastEditTime: 2022-11-04 14:15:12
+ * @LastEditTime: 2022-11-04 14:32:39
  * @FilePath: \ntbigscreen\src\views\index.vue
  * @FilePath: \ntbigscreen\src\views\index.vue
  * @Copyright: Copyright (c) 2016~2022 by wangcc, All Rights Reserved. 
  * @Copyright: Copyright (c) 2016~2022 by wangcc, All Rights Reserved. 
 -->
 -->
@@ -468,9 +468,10 @@ export default {
       this.getPageData();
       this.getPageData();
     },
     },
     getPageData() {
     getPageData() {
-      debounce(this.debounceGetData, 300, false);
+      debounce(this.debounceGetData, 1000, true);
     },
     },
     debounceGetData() {
     debounceGetData() {
+      console.log('请求数据');
       // console.log('page', this.$store.state.addr.page);
       // console.log('page', this.$store.state.addr.page);
       // {text:'森林资源',en:'forest'},
       // {text:'森林资源',en:'forest'},
       //   {text:'林木结构',en:'treeSpecies'},
       //   {text:'林木结构',en:'treeSpecies'},