diff --git a/src/glcc/interimReview/studentSubmit.jsx b/src/glcc/interimReview/studentSubmit.jsx index b54733dd9..62a5ab623 100644 --- a/src/glcc/interimReview/studentSubmit.jsx +++ b/src/glcc/interimReview/studentSubmit.jsx @@ -44,12 +44,14 @@ function StudentSubmit(props){ const [isAuthed, setIsAuthed] = useState(false); useEffect(()=>{ - hasFinalExam({round:currentRound,userId:current_user.user_id}).then((res)=>{ - if(res && res.data && res.data.hasRole) return; - history.push("/glcc"); - }).catch((err)=>{ - history.push("/glcc"); - }) + if(period != "mediumExamine1"){ + hasFinalExam({round:currentRound,userId:current_user.user_id}).then((res)=>{ + if(res && res.data && res.data.hasRole) return; + history.push("/glcc"); + }).catch((err)=>{ + history.push("/glcc"); + }) + } },[]) useEffect(()=>{ @@ -143,25 +145,23 @@ function StudentSubmit(props){ }, }) .then((response) => { - if (response) { - if (response.data.state && response.data.state.length > 0) { - callback(""); - const description = ( -
- ); - notification.open({ - message: "提示", - description, - key:'notificationKey', - style: { - zIndex: 99999999, - }, - }); - } - callback(); + if (response && response.data && response.data.state && response.data.state.length > 0) { + callback(""); + const description = ( +
+ ); + notification.open({ + message: "提示", + description, + key:'notificationKey', + style: { + zIndex: 99999999, + }, + }); } + callback(); }); } else { callback("请输入视频链接");