diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue index f6d3a91651daea9720aa8e5f899d1d5cf27585bb..97d99d4dd7e414fb392ba6599acb6a65d4990c4d 100644 --- a/src/components/Autocomplete.vue +++ b/src/components/Autocomplete.vue @@ -83,11 +83,11 @@ if (/_|\*|\|/.test(q)) { search = 2 } - this.items.splice(0,1, {q: q, label: q+" ", time: time, search: search}) + this.items.splice(0,1, {q: q, match: q, label: q+" ", time: time, search: search}) } } else { - this.items.push({q: q, label: q+" ", time: time, search: search}) + this.items.push({q: q, match: q, label: q+" ", time: time, search: search}) } let self = this self.api.get('suggest?', {params: {q: q, dict: self.$parent.lang, n: 80, scope: 'w'}})