From 693879d6b36bc77937114827dd2fe6840ca06bad Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 28 Aug 2024 16:34:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E4=BC=B0=E9=A1=B9=E7=9B=AE=E5=A4=96?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E6=89=AB=E7=A0=81=E6=8A=A5=E9=94=99=E8=BF=9B?= =?UTF-8?q?=E4=B8=80=E6=AD=A5=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 | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/views/investigat/InvestigatPage.vue b/src/views/investigat/InvestigatPage.vue index 2bc336f..5b45197 100644 --- a/src/views/investigat/InvestigatPage.vue +++ b/src/views/investigat/InvestigatPage.vue @@ -180,10 +180,10 @@
{ - if (res.code === 6) { + }, + (e) => { + if (e.code === 6) { router.push({ path: "/NotProject2", }); } - if(res.data.projectInfoList.length == 0){ - res.data.projectInfoList=[ + if(e.data && e.data.projectInfoList.length == 0){ + e.data.projectInfoList=[ {teacherName: '', courseName: '', projectName: ''} ] - res.data.falseS = false + e.data.falseS = false }else{ - res.data.falseS = true + if(e.data){ + e.data.falseS = true + } } - }, - (e) => { useRequest( checkStudentExist, {