0👍
I suggest to use computed.
and use it to your table
<template>
...
<tr v-for ="item in datatable" v-bind:key="item.Id">
...
</template>
export default {
...
computed: {
// This method will be triggered when there are changes on data value
// Make sure to put inside the data that needs to be watch
// Example this.filteredCats
datatable() {
let table = this.Effdata
// Do sort
// Do filter
// Use this.filteredCats in order to trigger this computed
this.filteredCats
table = table.sort(...)
table = table.filter(...)
return table
}
}
}
Source:stackexchange.com