mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 14:26:43 +08:00
排行榜图片显示问题
This commit is contained in:
@@ -572,11 +572,13 @@
|
||||
if (res.status == 200) {
|
||||
res.result.forEach(item => {
|
||||
if (item.publishTime != '') {
|
||||
item.coverImg=item.images;
|
||||
let time = item.publishTime.split('-');
|
||||
item.publishTime = `${time[0]}年${time[1]}月${time[2]}日`
|
||||
}
|
||||
})
|
||||
this.scorelist = res.result;
|
||||
console.log(this.scorelist,'this.scorelist');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user