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

Commit 41e05a2

Browse files
authored
fix(npm): use debounce search (#251)
1 parent 5b9ac05 commit 41e05a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/client/pages/npm.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function getProjectDeps() {
9696
}
9797
getProjectDeps()
9898
99-
watch(keywords, (value) => {
99+
watchDebounced(keywords, (value) => {
100100
page.value = 0
101101
el.value?.scrollTo({
102102
top: 0,
@@ -106,6 +106,7 @@ watch(keywords, (value) => {
106106
search(value)
107107
}, {
108108
immediate: true,
109+
debounce: 300,
109110
})
110111
111112
useInfiniteScroll(

0 commit comments

Comments
 (0)