From 5126c7e73bef4bf30354bf100bd6db5b2abe8857 Mon Sep 17 00:00:00 2001 From: DanWlker Date: Sat, 19 Mar 2022 22:30:25 +0800 Subject: [PATCH] Fix for issue #100 --- NUXT/layouts/default.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NUXT/layouts/default.vue b/NUXT/layouts/default.vue index 1d686b8..a68d64b 100644 --- a/NUXT/layouts/default.vue +++ b/NUXT/layouts/default.vue @@ -178,6 +178,10 @@ export default { searchBtn() { const query = this.text; + if(query === "") { + return; + } + if (this.search === true) { this.$router.push(`/search?q=${query}`); this.search = false;