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(() => {