新版交易所前段管理后台
1
PC-20250623MANY\Administrator
2025-09-18 29becfd1b643f60de4437ebbd854e8e84432a4cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 防抖 防止表单重复提交
export const Debounce = (fn, t) => {
  let delay = t || 300
  let timer
  return function () {
    let args = arguments
    if (timer) {
      clearTimeout(timer)
    }
 
    let callNow = !timer
 
    timer = setTimeout(() => {
      timer = null
    }, delay)
 
    if (callNow) fn.apply(this, args)
  }
}