diff --git a/src/views/project/ProjectDetails.vue b/src/views/project/ProjectDetails.vue index 6070e67..2c55353 100644 --- a/src/views/project/ProjectDetails.vue +++ b/src/views/project/ProjectDetails.vue @@ -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") {