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)