From 85410a80e0adacd34e2f596a3e123a696c8724d7 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Fri, 23 Aug 2024 10:47:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=AF=84=E4=BC=B0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=A4=96=E4=BA=BA=E5=91=98=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/investigat/InvestigatPage.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/investigat/InvestigatPage.vue b/src/views/investigat/InvestigatPage.vue index a983329..3522613 100644 --- a/src/views/investigat/InvestigatPage.vue +++ b/src/views/investigat/InvestigatPage.vue @@ -301,6 +301,11 @@ const { data } = useRequest( chapterOrStageId, targetId: infoId ? infoId : 0, },(res)=>{ + if (res.code === 6 || res.data.code === 6) { + router.push({ + path: "/NotProject2", + }); + } if(res.data.projectInfoList.length == 0){ res.data.projectInfoList=[ {teacherName: '', courseName: '', projectName: ''} @@ -309,11 +314,7 @@ const { data } = useRequest( }else{ res.data.falseS = true } - if (res.code === 6) { - router.push({ - path: "/NotProject2", - }); - } }, + }, (e) => { useRequest( checkStudentExist, From 3ed6be51ccb0e00b21f513991aac91ac96e4f7cb Mon Sep 17 00:00:00 2001 From: zhangsir Date: Fri, 23 Aug 2024 11:13:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AF=84=E4=BC=B0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=A4=96=E4=BA=BA=E5=91=98=E6=89=AB=E7=A0=81=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/investigat/InvestigatPage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/investigat/InvestigatPage.vue b/src/views/investigat/InvestigatPage.vue index 3522613..2bc336f 100644 --- a/src/views/investigat/InvestigatPage.vue +++ b/src/views/investigat/InvestigatPage.vue @@ -301,7 +301,7 @@ const { data } = useRequest( chapterOrStageId, targetId: infoId ? infoId : 0, },(res)=>{ - if (res.code === 6 || res.data.code === 6) { + if (res.code === 6) { router.push({ path: "/NotProject2", }); @@ -427,7 +427,7 @@ onMounted(() => { result: JSON.stringify(data.value), beginTime: answerTime, }) - if (res.data.isSubmit) { + if (res.code == 200 && res.data.isSubmit) { open(); } })