mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-23 17:55:37 +08:00
fix:课程-学习项目的社招新员工调整逻辑调整
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user