import clientClass from './clientClass'
export default {
data (){
return {
update: clientClass.updateList.bind(this),
sort: clientClass.sortList.bind(this)
...
}
},
methods: {
async updateList() { this.clients = await this.update()}
...
}