forked from Mirrors/elk
fix: prevent empty search keyword to send invalid request (#2676)
This commit is contained in:
parent
0fd9374e8c
commit
dfbe2e080d
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ export function useSearch(query: MaybeRefOrGetter<string>, options: UseSearchOpt
|
||||||
})
|
})
|
||||||
|
|
||||||
debouncedWatch(() => resolveUnref(query), async () => {
|
debouncedWatch(() => resolveUnref(query), async () => {
|
||||||
if (!q || !isHydrated.value)
|
if (!q.value || !isHydrated.value)
|
||||||
return
|
return
|
||||||
|
|
||||||
loading.value = true
|
loading.value = true
|
||||||
|
|
Loading…
Reference in a new issue