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 @@