完善生产查询与登录权限配置

This commit is contained in:
2026-09-03 19:56:19 +08:00
parent 793f140a45
commit 02c8fb7021
438 changed files with 1595 additions and 573 deletions
@@ -0,0 +1,16 @@
export function useThrottle(delay: number = 500) {
let previous: number = 0;
// 节流函数
function throttle(callback: () => void, throttleTime?: number) {
throttleTime = throttleTime || delay;
let now = Date.now();
if (now - previous > throttleTime) {
callback();
previous = now;
}
}
return {
throttle
};
}