diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 6626f460..c53c791e 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -48,6 +48,14 @@ export default { default: 0 } }, + watch: { + options: { + handler() { + this.getDataFromApi(); + }, + deep: true + } + }, methods: { lt(ltKey) { return window.$gz.locale.get(ltKey); @@ -121,7 +129,7 @@ export default { listOptions["Mini"] = true; } - this.loading = true; + that.loading = true; var listUrl = that.apiBaseUrl + "?" + window.$gz.api.buildQuery(listOptions); window.$gz.api.get(listUrl).then(res => {