From 7f5b2e91b70878633fcec22bd20bf63d500df9b2 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 10 Mar 2023 02:13:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/study/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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) {