Commit da30d3118b

da30d3118b6c5236676a1d788e2493226c2645f8

parent: e6c47a758b

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-06-02 17:10 UTC

Update Search.vue

Layout: unified · split

docs/.vitepress/theme/components/Search.vue +7
@@ -705,6 +705,13 @@ watchDebounced(
705 return 705 return
706 } 706 }
707 707
708 // Empty query — clear results and show the empty state
709 if (!filterTextValue.trim()) {
710 results.value = []
711 enableNoResults.value = false
712 return
713 }
714
708 // Dynamic search options based on matchExact toggle 715 // Dynamic search options based on matchExact toggle
709 const dynamicSearchOptions = { 716 const dynamicSearchOptions = {
710 fuzzy: mode === 'fuzzy' ? (0.3 as number | false) : false, 717 fuzzy: mode === 'fuzzy' ? (0.3 as number | false) : false,