From 59882e39e47e99a5ba2b5d2ef3d5eb11b9f5d541 Mon Sep 17 00:00:00 2001 From: zxj Date: Mon, 22 Dec 2025 18:23:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=AF=BE=E7=A8=8B-=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=9A=84=E7=A4=BE=E6=8B=9B=E6=96=B0=E5=91=98?= =?UTF-8?q?=E5=B7=A5=E8=B0=83=E6=95=B4=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Index.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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) {