diff --git a/pages/study/index.vue b/pages/study/index.vue index 8adaff7..ab472ff 100644 --- a/pages/study/index.vue +++ b/pages/study/index.vue @@ -520,9 +520,13 @@ apiManage.userTaskList(params).then(res => { if(res.code==200){ - // res.data.records.forEach(r=>{ - // r.cmtask_imgurl='/upload/temp/1647074306.jpg'; - // }) + res.data.records.forEach(r=>{ + //r.cmtask_imgurl='/upload/static/images/course/courseDefault.png'; + if(r.cmtask_imgurl.startsWith('/upload')){ + r.cmtask_imgurl=this.$config.fileUrl+r.cmtask_imgurl.substring(7); + } + console.log('aaa='+r.cmtask_imgurl); + }) this.taskCount = parseInt(res.data.total); this.couresList.push(...res.data.records); if (this.taskCount > this.taskPageIndex * this.taskPageSize) {