From 50d19dcb0e279b6d8540a269bfff1779367a6213 Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 1 Nov 2022 21:07:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Index.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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; // }