diff --git a/pages/study/index.vue b/pages/study/index.vue
index a5ec53f..3a30cdd 100644
--- a/pages/study/index.vue
+++ b/pages/study/index.vue
@@ -6,7 +6,8 @@
- {showSearch = true;firstType = 0;endType = 0;boeStatus = '';typeListData=''}">
+
+ {showSearch = true;}">
筛选
@@ -799,10 +800,10 @@
if(res.code==200){
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);
+ if (r.cmtask_imgurl && r.cmtask_imgurl.startsWith('/upload')) {
+ r.cmtask_imgurl = this.$config.fileUrl + r.cmtask_imgurl.substring(7);
}
- //console.log('aaa='+r.cmtask_imgurl);
+ // console.log('aaa='+r.cmtask_imgurl);
})
this.taskCount = parseInt(res.data.total);
this.couresList.push(...res.data.records);