mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-11 03:46:48 +08:00
fix -- 完成任务bug
This commit is contained in:
@@ -714,32 +714,16 @@ async function toFinish(d, sName, chapterOrStageId) {
|
||||
}
|
||||
//更新学员当前任务
|
||||
await request(UPDATE_CURRENT_TASK, {id: d.id, type: PROJECT, pid: projectId, name: d.name})
|
||||
if (d.type == 3 || d.type == 7) {
|
||||
if (d.type == 3 || d.type == 7 || (d.type === 5 && d.examType === 2)) {
|
||||
d.status !== 1 && await request(STUDY_RECORD, {
|
||||
studentId: userInfo.value.projectId,
|
||||
targetId: data.value.routerId,
|
||||
logo: PROJECT,
|
||||
type: PROJECT,
|
||||
stageOrChapterId: chapterOrStageId,
|
||||
taskId: d.id,
|
||||
taskType: d.type,
|
||||
});
|
||||
// 此处判断外链跳转详情界面
|
||||
if (d.type == 7) {
|
||||
router.push({
|
||||
path: '/outerchain',
|
||||
query: {
|
||||
id: d.id,
|
||||
type: PROJECT,
|
||||
infoId: data.value.projectId,
|
||||
courseId: d.courseId,
|
||||
pName: data.value.name,
|
||||
sName,
|
||||
chapterOrStageId,
|
||||
exname: d.name, // 外链名称
|
||||
},
|
||||
});
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof TASK_TYPES.path[d.type] === "string") {
|
||||
|
||||
Reference in New Issue
Block a user