I have a function need to write async but I can't do it the right way. Hope your guys help.
async search (loading, search, vm) {
let vm = this
_.debounce(() => {
let ApiURL = '/users/'
}
let { res } = await api.get(ApiURL) //Error
vm.options = res.data
}, 800)
Just assign the lodash function directly as a component method
https://jsfiddle.net/6thcxfym/
In your case: