diff --git a/src/common/noclick.js b/src/common/noclick.js index 6fe72a29..391ee043 100644 --- a/src/common/noclick.js +++ b/src/common/noclick.js @@ -23,17 +23,17 @@ function noMultipleClicks(methods, info) { // 节流函数 const throttle = (fn, t,_this) => { - console.log('throttle') - return ()=> { - if (!_this.timer) { - _this.timer = setTimeout(()=>{ - fn() - console.log('fn') - //·清空定时器 - _this.timer = null - }, t) - } - } + console.log('throttle') + return ()=> { + if (!_this.timer) { + _this.timer = setTimeout(()=>{ + console.log('fn') + //·清空定时器 + _this.timer = null + }, t) + fn() + } + } }