From d028649388d212e9e5389be5de536d0c03569fc3 Mon Sep 17 00:00:00 2001 From: namezlx <1879558202@qq.com> Date: Tue, 26 Sep 2023 09:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E9=A1=B9=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/interimReview/studentSubmit.jsx | 48 ++++++++++++------------ 1 file changed, 24 insertions(+), 24 deletions(-) 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("请输入视频链接");