mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
提交首页
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user