diff --git a/src/views/Index.vue b/src/views/Index.vue index ffb055ad..2f015ea6 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -828,9 +828,9 @@ }; apiIndex.courselist(course).then(res => { - if (res.status == 200 && res.result.list.length > 0) { + if (res.status == 200 && res.result.length > 0) { let courseIds = []; - res.result.list.forEach(item => { + res.result.forEach(item => { item.authorInfo = { aid: '', name: '', @@ -841,13 +841,13 @@ }; courseIds.push(item.id); }); - this.loadCouserTeacher(res.result.list, courseIds); - this.courseList.list = res.result.list; - this.couname = res.result.list.name; - if (res.result.count - pageIndex * num < 8) { - this.pageIndex = 0; - } - this.isNext = true; + this.loadCouserTeacher(res.result, courseIds); + this.courseList.list = res.result; + //this.couname = res.result.list.name; + // if (res.result.count - pageIndex * num < 8) { + // this.pageIndex = 0; + // } + // this.isNext = true; // }