From 66d412c10ada2e8200a72b947c38073b7019b532 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 28 Mar 2023 09:24:12 +0800 Subject: [PATCH] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9AREVIEW=20?= =?UTF-8?q?=E5=85=AC=E4=BC=97=E5=8F=B7=E6=A0=87=E7=AD=BE=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mp/account/index.vue | 14 +++--- src/views/mp/statistics/index.vue | 71 +++++++++++++------------------ 2 files changed, 36 insertions(+), 49 deletions(-) diff --git a/src/views/mp/account/index.vue b/src/views/mp/account/index.vue index 3489998b..2629c658 100644 --- a/src/views/mp/account/index.vue +++ b/src/views/mp/account/index.vue @@ -121,13 +121,13 @@ const queryFormRef = ref() // 搜索的表单 /** 查询列表 */ const getList = async () => { loading.value = true - // 处理查询参数 - let params = { ...queryParams } - // 执行查询 - const data = await AccountApi.getAccountPage(params) - list.value = data.list - total.value = data.total - loading.value = false + try { + const data = await AccountApi.getAccountPage(queryParams) + list.value = data.list + total.value = data.total + } finally { + loading.value = false + } } /** 搜索按钮操作 */ diff --git a/src/views/mp/statistics/index.vue b/src/views/mp/statistics/index.vue index 9411b674..d1dcb53c 100644 --- a/src/views/mp/statistics/index.vue +++ b/src/views/mp/statistics/index.vue @@ -5,7 +5,7 @@