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,
{