Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
fix(npm): use debounce search (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv authored Nov 3, 2023
1 parent 5b9ac05 commit 41e05a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/pages/npm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function getProjectDeps() {
}
getProjectDeps()
watch(keywords, (value) => {
watchDebounced(keywords, (value) => {
page.value = 0
el.value?.scrollTo({
top: 0,
Expand All @@ -106,6 +106,7 @@ watch(keywords, (value) => {
search(value)
}, {
immediate: true,
debounce: 300,
})
useInfiniteScroll(
Expand Down

0 comments on commit 41e05a2

Please sign in to comment.