fix:课程-学习项目的社招新员工调整逻辑调整

This commit is contained in:
zxj
2025-12-22 18:23:14 +08:00
parent d30ef31d7f
commit 59882e39e4

View File

@@ -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) {