diff --git a/src/api/mycourse/index.js b/src/api/mycourse/index.js index 788b1ef..0c37cf3 100644 --- a/src/api/mycourse/index.js +++ b/src/api/mycourse/index.js @@ -4,7 +4,7 @@ const mycourseApi = { changePassword: '/sys/user/changePwd', mycourseList: 'myCourse/getMyCourseList', // 我的课程列表,课程搜索 addMyCourse: 'myCourse/addMyCourse', // 添加课程 - centerList: 'focused/training/list', // 集中培训列表 + centerList: 'focusTrain/getList', // 集中培训列表 centerDetail: 'focusTrain/getDetail', // 集中培训详情 centerJoin: 'project/terminalTrain/enroll', // 集中培训报名 centerSign: 'project/terminalTrain/sign', // 集中培训签到 diff --git a/src/views/myhome/index.vue b/src/views/myhome/index.vue index 10936e2..3bf2963 100644 --- a/src/views/myhome/index.vue +++ b/src/views/myhome/index.vue @@ -224,7 +224,8 @@ export default { }, // 集中培训 getJzpxList () { - reqCourseCenterList({ pageSize: 5, pageNum: 1 }).then(res => { + const { person } = this.$store.state.user + reqCourseCenterList({personId:person.id, pageSize: 5, pageNum: 1 }).then(res => { this.jzpxList = res.rows }) },