From 8bb1f461553f7c0e4ad0bf4e8a83d6188dcdc3f5 Mon Sep 17 00:00:00 2001 From: yangjian Date: Tue, 26 Aug 2025 14:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=A9=BA=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/debounce.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/utils/debounce.js b/src/utils/debounce.js index ecbb79a..c5ba714 100644 --- a/src/utils/debounce.js +++ b/src/utils/debounce.js @@ -7,13 +7,10 @@ export const Debounce = (fn, t) => { if (timer) { clearTimeout(timer) } - const callNow = !timer - timer = setTimeout(() => { timer = null }, delay) - if (callNow) fn.apply(this, args) } }