mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
提交首页
This commit is contained in:
@@ -828,9 +828,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
apiIndex.courselist(course).then(res => {
|
apiIndex.courselist(course).then(res => {
|
||||||
if (res.status == 200 && res.result.list.length > 0) {
|
if (res.status == 200 && res.result.length > 0) {
|
||||||
let courseIds = [];
|
let courseIds = [];
|
||||||
res.result.list.forEach(item => {
|
res.result.forEach(item => {
|
||||||
item.authorInfo = {
|
item.authorInfo = {
|
||||||
aid: '',
|
aid: '',
|
||||||
name: '',
|
name: '',
|
||||||
@@ -841,13 +841,13 @@
|
|||||||
};
|
};
|
||||||
courseIds.push(item.id);
|
courseIds.push(item.id);
|
||||||
});
|
});
|
||||||
this.loadCouserTeacher(res.result.list, courseIds);
|
this.loadCouserTeacher(res.result, courseIds);
|
||||||
this.courseList.list = res.result.list;
|
this.courseList.list = res.result;
|
||||||
this.couname = res.result.list.name;
|
//this.couname = res.result.list.name;
|
||||||
if (res.result.count - pageIndex * num < 8) {
|
// if (res.result.count - pageIndex * num < 8) {
|
||||||
this.pageIndex = 0;
|
// this.pageIndex = 0;
|
||||||
}
|
// }
|
||||||
this.isNext = true;
|
// this.isNext = true;
|
||||||
|
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user