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