From 314fd4ce5a5ee5e3be13cac9b62e3bf3c8b43a3e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 29 Jan 2020 19:46:38 +0000 Subject: [PATCH] --- ayanova/src/components/gz-data-table.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 => {