Sfoglia il codice sorgente

feat: add hiddenSearch function to manage search visibility in RouterSearch component

AhJindeg 7 mesi fa
parent
commit
d815c60340
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/components/RouterSearch/index.vue

+ 5 - 0
src/components/RouterSearch/index.vue

@@ -79,9 +79,14 @@ function remoteMethod(data) {
 
 function handleChange(path) {
   router.push({ path })
+  hiddenSearch()
   hiddenTopSearch()
 }
 
+function hiddenSearch() {
+  showSearch.value = false
+}
+
 function hiddenTopSearch() {
   showTopSearch.value = false
 }