From 82b8e53aee47e9bb30f7a78a9f2a578a25d95e30 Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Sun, 24 Nov 2024 15:19:00 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A2643=20=E3=80=90=E5=9C=B0=E6=A0=87?= =?UTF-8?q?=E5=A5=BD=E7=89=A9=E3=80=91=E5=88=87=E6=8D=A2=E5=88=B0=E6=97=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E7=9C=81=E4=BB=BD=EF=BC=8C=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE-=E4=BC=81=E4=B8=9A=E6=8E=A8=E8=8D=90=E5=92=8C?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=86=85=E5=AE=B9=E4=BC=9A=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E4=B8=8A=E4=B8=80=E4=B8=AA=E7=9C=81=E4=BB=BD=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/components/culture.vue | 2 +- pages/home/components/information.vue | 2 +- pages/home/components/policy.vue | 2 +- pages/home/components/recommend.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/home/components/culture.vue b/pages/home/components/culture.vue index 6494e8b..c9e8a5a 100644 --- a/pages/home/components/culture.vue +++ b/pages/home/components/culture.vue @@ -47,7 +47,7 @@ export default { }, getData() { getCulture({landmarkDataId: this.landmarkDataId}).then(res => { - this.list = res.data.cultureImages + this.list = res.data.cultureImages || [] }) } } diff --git a/pages/home/components/information.vue b/pages/home/components/information.vue index 9f3c562..577f2c6 100644 --- a/pages/home/components/information.vue +++ b/pages/home/components/information.vue @@ -122,7 +122,7 @@ export default { limit: 9999 } getNews(params).then(res => { - this.infoArray = res.data.records + this.infoArray = res.data.records || [] }) }, likeInfoItemHandle(item, index, value, voValue) { diff --git a/pages/home/components/policy.vue b/pages/home/components/policy.vue index 241ca92..ea4b05b 100644 --- a/pages/home/components/policy.vue +++ b/pages/home/components/policy.vue @@ -56,7 +56,7 @@ export default { limit: 99999 } getPorjectPolicyFiles(params).then(res => { - this.list = res.data.records + this.list = res.data.records || [] if(this.isMore) { this.currentList = this.list } else { diff --git a/pages/home/components/recommend.vue b/pages/home/components/recommend.vue index 4c00bea..a9eeb60 100644 --- a/pages/home/components/recommend.vue +++ b/pages/home/components/recommend.vue @@ -57,7 +57,7 @@ export default { methods: { getData() { getPorjectRecommend({landmarkDataId: this.landmarkDataId}).then(res => { - this.list = res.data + this.list = res.data || [] if(this.isMore) { this.currentList = this.list } else {