-
Notifications
You must be signed in to change notification settings - Fork 298
Open
Description
I'm using Axios to request the data from the API with access token and get the data but not showing in the table may I know why
<vuetable
ref="vuetable"
class="table-divided order-with-arrow responsive-table"
:query-params="makeQueryParams"
:per-page="perPage"
:reactive-api-url="true"
:fields="fields"
pagination-path
:http-fetch="getData"
:row-class="onRowClass"
@vuetable:load-error="requestFail"
@vuetable:pagination-data="onPaginationData"
>
getData(apiUrl,httpOptions){
// console.log(apiUrl,httpOptions,'httpOptions');
await axios
.get(${this.apiBase},httpOptions)
.then(response => {
console.log(response.data,'ssdasdsa');
// this.loadSuccess(response);
this.isLoad =true;
return response;
}).catch(e => {
console.log(e);
})
},
Metadata
Metadata
Assignees
Labels
No labels