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:07:24 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
1cc855551bd71363e183e1748d083273f6fe9280
1cc85555
2 parents
0f5999ff
43271b4c
Merge branch 'fix-issues' into uat
Hide 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 @
1cc8555
...
...
@@ -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