Merge branch 'dev-wdb' of http://175.27.226.205:3000/huxuejian/ykt-wxapp into dev-wdb
This commit is contained in:
commit
b3a7310f0b
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
export default function useDebounce(callback, delay = 1000) {
|
export default function useDebounce(callback, delay = 500) {
|
||||||
let timer = null;
|
let timer = null;
|
||||||
return (...args) => {
|
return (...args) => {
|
||||||
if (timer) clearTimeout(timer)
|
if (timer) clearTimeout(timer)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user