Add search engine to settings
This commit is contained in:
parent
d0c885c295
commit
b6d678b423
1 changed files with 3 additions and 2 deletions
|
@ -280,8 +280,9 @@ export default {
|
|||
})
|
||||
},
|
||||
querySearch(queryString, cb) {
|
||||
const results = this.searchData
|
||||
// call callback function to return suggestions
|
||||
const results = Object.keys(this.searchData)
|
||||
.filter(key => this.searchData[key].find(a => a.includes(queryString)))
|
||||
.map(el => { return { value: el } })
|
||||
cb(results)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue