forked from AkkomaGang/admin-fe
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) {
|
querySearch(queryString, cb) {
|
||||||
const results = this.searchData
|
const results = Object.keys(this.searchData)
|
||||||
// call callback function to return suggestions
|
.filter(key => this.searchData[key].find(a => a.includes(queryString)))
|
||||||
|
.map(el => { return { value: el } })
|
||||||
cb(results)
|
cb(results)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue