0

enter image description here

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 ?

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.