I have the following problem. I need to regenerate a table every time a sqlData() computed property is accessed.
<div v-for="(val, key) in table">
<!-- display table data -->
</div>
computed: {
sqlData () {
// read SQL with axios
return this.table = response.data
}
},
methods: {
methodOne() {
// make some changes to the SQL, then call to read the updated table
this.sqlData;
},
methodTwo() {
// make some other changes to the SQL, then call to read the updated table
this.sqlData;
}
}
Could you suggest a solution?