From 9e4abc44724b03af7ffa4e2de670eb40f01e594e Mon Sep 17 00:00:00 2001 From: zyn Date: Tue, 7 Nov 2023 16:34:24 +0800 Subject: [PATCH] =?UTF-8?q?78195=20=E6=94=BF=E7=AD=96=E8=AF=BE=E9=A2=98--?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=97=B6=E9=97=B4=E6=9F=A5=E8=AF=A2=E7=9A=84?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/policyRegulation/meeting/index.vue | 4 +--- src/pages/policyRegulation/policyTopics/index.vue | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pages/policyRegulation/meeting/index.vue b/src/pages/policyRegulation/meeting/index.vue index 135f54b75..29a48004c 100644 --- a/src/pages/policyRegulation/meeting/index.vue +++ b/src/pages/policyRegulation/meeting/index.vue @@ -231,9 +231,7 @@ export default { let params = { ...this.searchForm, ...this.advancedSearchForm } const res = await this.$http._getData(this.api.page, params, {_this:this,loading: 'loading'}) if (res.ok && res.data) { - if (res.data.list && res.data.list.length > 0) { - this.data = res.data.list - } + this.data = res.data.list this.total = res.data.count } }, diff --git a/src/pages/policyRegulation/policyTopics/index.vue b/src/pages/policyRegulation/policyTopics/index.vue index 76514186c..c0c95841e 100644 --- a/src/pages/policyRegulation/policyTopics/index.vue +++ b/src/pages/policyRegulation/policyTopics/index.vue @@ -245,9 +245,7 @@ export default { let params = { ...this.searchForm, ...this.advancedSearchForm } const res = await this.$http._getData(this.api.page, params, {_this:this,loading: 'loading'}) if (res.ok && res.data) { - if (res.data.list && res.data.list.length > 0) { - this.data = res.data.list - } + this.data = res.data.list this.total = res.data.count } },