[Vuejs]-Vue.js not updated table

0👍

Your data is not reactive.
It should be a function and return your data properties
Eg:

data() { 
  return {
            // filterByColumn: true,
            columns: ['id', 'customer.name', 'state.name'],
            // editableColumns:['name'],
            // sortable: ['sap', 'name'],
            // filterable: ['sap', 'name'],
            data: [],
            states: [],
            selectedState: '',
            managers: [],
            options: {
                requestFunction(data) {
                    return axios.get(this.url, {
                        params: data
                    }).catch(function (e) {
                        this.dispatch('error', e);
                    }).finally(() => (global_waiting_stop()));
                },
                responseAdapter(resp) {
                    var data = this.getResponseData(resp);
                    return {data: data.results, count: data.count}
                },
            }
       };
}

    Leave a comment