Browse Source

修改点击处理

lijuncheng0816
lijuncheng 1 month ago
parent
commit
a6c5e6eff5
  1. 2
      src/common/noclick.js

2
src/common/noclick.js

@ -27,11 +27,11 @@ const throttle = (fn, t,_this) => {
return ()=> {
if (!_this.timer) {
_this.timer = setTimeout(()=>{
fn()
console.log('fn')
//·清空定时器
_this.timer = null
}, t)
fn()
}
}
}

Loading…
Cancel
Save