From 4ca72eabcdcef1566be7b8012773985f43fe1c7c Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Fri, 26 Apr 2024 10:45:15 +0800 Subject: [PATCH] uu --- common/util.js | 2 +- components/tpx-scroll-view/tpx-scroll-view.vue | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/common/util.js b/common/util.js index 4fa341b..f664acd 100644 --- a/common/util.js +++ b/common/util.js @@ -122,9 +122,9 @@ const debounce = (fn, wait) => { let callNow = !timer timer = setTimeout(() => { console.log('发送') + fn.apply(this, args) timer = null }, delay) - if (callNow) fn.apply(this, args) } } diff --git a/components/tpx-scroll-view/tpx-scroll-view.vue b/components/tpx-scroll-view/tpx-scroll-view.vue index 3e10f62..1086452 100644 --- a/components/tpx-scroll-view/tpx-scroll-view.vue +++ b/components/tpx-scroll-view/tpx-scroll-view.vue @@ -15,16 +15,15 @@