mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-06 03:57:53 +08:00
解决 debounce 当 immediate 入参 false 的时候,args无法被赋值,导致取不到入参的问题
解决 debounce 当 immediate 入参 false 的时候,args无法被赋值,导致取不到入参的问题
This commit is contained in:
parent
1bc2e5c198
commit
e6ab249ce4
@ -271,7 +271,8 @@ export function debounce(func, wait, immediate) {
|
||||
}
|
||||
}
|
||||
|
||||
return function(...args) {
|
||||
return function() {
|
||||
args = arguments
|
||||
context = this
|
||||
timestamp = +new Date()
|
||||
const callNow = immediate && !timeout
|
||||
|
Loading…
x
Reference in New Issue
Block a user