How can i get parametere after / from URL and put it in variable (this.searchQuery)
loadUsers(){
this.loading = true
fetch(window.config.apiUrl + '/widgets/search-users?userServices=false')
.then(res => res.json())
.then(response => {
this.users = response.users;
})
.catch(err => {
console.log(err)
})
.finally(() => (this.loading = false))
}
},
mounted () {
this.loadUsers();
this.searchQuery = ''
}, '