Skip to content

http-fetch not showing data #194

@rala-4

Description

@rala-4

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions