From fb46d26127b6c085df5d16ae2cd5d9353790bede Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Sat, 15 Oct 2022 11:03:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/SearchBox.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/SearchBox.vue b/components/SearchBox.vue index 4f94d35..6f54767 100644 --- a/components/SearchBox.vue +++ b/components/SearchBox.vue @@ -33,10 +33,8 @@ }, methods: { handleChange ($event) { - if ($event.target.value) { - this.cur = $event.target.value - this.$emit('input', this.cur) - } + this.cur = $event.target.value + this.$emit('input', this.cur) }, toSearch () { this.$emit('toSearch', this.cur)