移除空行

This commit is contained in:
yangjian 2025-08-26 14:08:11 +08:00
parent a1d91beac7
commit 8bb1f46155

View File

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