Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Elements-SY
2023-09-15 18:06:33 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
43271b4c3468392567c503b2d17310087c295f52
43271b4c
2 parents
4d450277
1a8a42ff
Merge branch 'test' into fix-issues
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/utils/index.js
src/utils/index.js
View file @
43271b4
...
...
@@ -245,7 +245,7 @@ export function debounce(func, wait, immediate) {
return
function
(...
args
)
{
context
=
this
;
timestamp
=
+
new
Date
();
data
=
args
;
data
=
args
;
// 把实参作为防抖回调函数的返回值
const
callNow
=
immediate
&&
!
timeout
;
// 如果延时不存在,重新设定延时
if
(
!
timeout
)
timeout
=
setTimeout
(
later
,
wait
);
...
...
Please
register
or
login
to post a comment