Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http-fetch not showing data #194

Open
rala-4 opened this issue Dec 27, 2021 · 0 comments
Open

http-fetch not showing data #194

rala-4 opened this issue Dec 27, 2021 · 0 comments

Comments

@rala-4
Copy link

rala-4 commented Dec 27, 2021

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);
})
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant