diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index acb5dde7..d69d7c03 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -1377,14 +1377,24 @@ export default { }); }, //课程列表详情 - toCourseDetail(item) { + async toCourseDetail(item) { let $this = this; let courseId = item.id; if (!courseId) { courseId = item.courseId; } if (item.szxygProjectFlag == 1) { - this.$router.push("/new-employee/study"); + // 从后端获取用户信息和报名状态 + const res = await getWelcomeData(); + if (res.status === 200 && res.data) { + if (res.data?.approvalResults && res.data?.approvalResults != 1) { + this.$router.push("/new-employee/study"); + return; + } else { + this.$router.push("/new-employee/welcome"); + return; + } + } return; } if (item.source == 1) {