From c0448c5dec41a86af72992466fe16c6f50b1eb60 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Thu, 23 Feb 2023 01:41:06 +0800 Subject: [PATCH] =?UTF-8?q?fix=20--=20=E5=AE=8C=E6=88=90=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/ProjectDetails.vue | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) 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") {