From 2d490943e72a4668413b5fe1e091bfaa15398f4e Mon Sep 17 00:00:00 2001 From: CD配唱片 <CD配唱片> Date: 星期四, 08 五月 2025 14:17:46 +0800 Subject: [PATCH] 提交钣金异常料号报表静态页及联调,工艺路线下拉加载表格加入节流优化避免下拉加载1s之内多次调用接口问题 --- src/utils/throttle.js | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/utils/throttle.js b/src/utils/throttle.js index 530320a..17ced74 100644 --- a/src/utils/throttle.js +++ b/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; -- Gitblit v1.9.3