From f49bebe22065b6611fc3ffcc9d06cfd066b9b139 Mon Sep 17 00:00:00 2001 From: Fine Date: Sun, 29 Sep 2024 15:07:36 +0800 Subject: [PATCH] loading --- src/store/modules/alarm.ts | 2 ++ src/views/alarm/Content.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/modules/alarm.ts b/src/store/modules/alarm.ts index 20a6cabe..c6d2fad6 100644 --- a/src/store/modules/alarm.ts +++ b/src/store/modules/alarm.ts @@ -36,7 +36,9 @@ export const alarmStore = defineStore({ }), actions: { async getAlarms(params: Recordable) { + this.loading = true; const res: AxiosResponse = await graphql.query("queryAlarms").params(params); + this.loading = false; if (res.data.errors) { return res.data; } diff --git a/src/views/alarm/Content.vue b/src/views/alarm/Content.vue index 352d4d55..0a8988ae 100644 --- a/src/views/alarm/Content.vue +++ b/src/views/alarm/Content.vue @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->