src/utils/throttle.js @@ -1,9 +1,7 @@ export function throttle(func, delay) { let lastTime = 0; return function(...args) { const now = Date.now(); if (now - lastTime >= delay) { func.apply(this, args); lastTime = now;