and this my code
export default {
name: "pegawai",
data() {
return {
}
},
created(){
this.$store.dispatch("GetPegawai");
this.tabel();
},
computed: {
fetch(){
return this.$store.state.pegawai
}
},
methods: {
tabel() {
this.$nextTick(()=>{
$('.example').DataTable();
})
}
}
why this happens, how to load json into datatables ?