doc: update data variable in getCovInfo

This commit is contained in:
Leon Xu committed 2022-05-07 20:23:04 -07:00
1 parent ff904dbe55
commit ecd94adb23
1 file changed
+1 -1
+1 -1
View File
@@ -46,7 +46,7 @@ export default {
},
created() {
api.getCovInfo().then((res) => {
let data = res.data[0].newslist[0].desc;
let data = res.data[0].newslist[0].desc[0];
this.covNews = res.data[0].newslist[0].news;
this.covData = {
currentConfirmedCount: data.currentConfirmedCount,