Zhu Zhonghua
2025-05-12 8d141c19086a0e88402c85702599e7748b2a6cd4
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;