Hi good day how can we use kt-datatable component with axios in vuejs ? When we tried this its not updating the table data
setup() {
const tableHeader = ref([
{
key: "checkbox",
sortable: false,
},
{
name: "Name",
key: "Name",
sortable: true,
},
]);
let tableData = ref([]);
onMounted(async () => {
const { data } = await axios.get(API_URL_HERE, {
headers: {
'Authorization': this.token
}
tableData = data
})
});
return {
tableData,
tableHeader
};
},