Pre Merge pull request !158 from 赤诚的心/N/A

This commit is contained in:
赤诚的心 2024-01-11 07:47:50 +00:00 committed by Gitee
commit bb432d01c1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 1 deletions

View File

@ -235,9 +235,10 @@ export function debounce(func, wait, immediate) {
}
}
return function(...args) {
return function(...args1) {
context = this
timestamp = +new Date()
args = args1
const callNow = immediate && !timeout
// 如果延时不存在,重新设定延时
if (!timeout) timeout = setTimeout(later, wait)