mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
Compare commits
2 Commits
v3.6.7
...
0d720c0682
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d720c0682 | ||
|
|
e8019dae1f |
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user