diff --git a/src/views/investigat/InvestigatPage.vue b/src/views/investigat/InvestigatPage.vue index 2bc336f..f0d66f8 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 === 9) { + router.push({ + path: "/NotProject3", + }); + } + if (e.code === 10) { 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, { diff --git a/src/views/nottask/NotProject.vue b/src/views/nottask/NotProject.vue index 90cff5c..e9bcc6d 100644 --- a/src/views/nottask/NotProject.vue +++ b/src/views/nottask/NotProject.vue @@ -7,7 +7,7 @@ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE -->