移除空行

This commit is contained in:
yangjian
2025-08-26 14:09:56 +08:00
parent b4e9620988
commit 6bafd23b3b

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