From bd974a66c692d327c7ba5883255c59ba58c9c26c Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 7 Jan 2022 17:42:00 +0800 Subject: [PATCH] bug --- src/apps/AppVillageDiscuss/Detail.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/AppVillageDiscuss/Detail.vue b/src/apps/AppVillageDiscuss/Detail.vue index 5f59d57a..06cda4be 100644 --- a/src/apps/AppVillageDiscuss/Detail.vue +++ b/src/apps/AppVillageDiscuss/Detail.vue @@ -159,7 +159,7 @@ export default { this.timestamp = discussTime - nowTime } - if (res.data.type === '1') { + if (res.data.type === '1' && res.data.statistic) { const total = Object.values(res.data.statistic).reduce((x, y) => { return x + y }) @@ -171,11 +171,12 @@ export default { } }) } + this.pageShow = true this.$hideLoading() - this.pageShow = true } else { this.$hideLoading() + this.pageShow = true } }) .catch(() => {