This commit is contained in:
yanran200730
2022-01-07 17:42:00 +08:00
parent eb6293a329
commit bd974a66c6

View File

@@ -159,7 +159,7 @@ export default {
this.timestamp = discussTime - nowTime 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) => { const total = Object.values(res.data.statistic).reduce((x, y) => {
return x + y return x + y
}) })
@@ -171,11 +171,12 @@ export default {
} }
}) })
} }
this.pageShow = true
this.$hideLoading() this.$hideLoading()
this.pageShow = true
} else { } else {
this.$hideLoading() this.$hideLoading()
this.pageShow = true
} }
}) })
.catch(() => { .catch(() => {