diff --git a/src/glcc/apply/index.jsx b/src/glcc/apply/index.jsx index 14467fe2a..07ddfb38a 100644 --- a/src/glcc/apply/index.jsx +++ b/src/glcc/apply/index.jsx @@ -52,7 +52,7 @@ function Apply(props) { useEffect(()=>{ // 获取当前用户报名信息 - current_user && getUserApplyInfo({userId: current_user.user_id, round}).then(response=>{ + current_user && round && getUserApplyInfo({userId: current_user.user_id, round}).then(response=>{ if(response && response.message === "success"){ setUserApplyInfo(response.data); if(!response.data){ @@ -81,7 +81,7 @@ function Apply(props) { }) } }) - }, [reload]) + }, []) // 当用户输入结束时 检验用户输入是否符合规范 function verify(dataIndex){ diff --git a/src/glcc/index.jsx b/src/glcc/index.jsx index 885c7f37d..1c50bac14 100644 --- a/src/glcc/index.jsx +++ b/src/glcc/index.jsx @@ -133,8 +133,8 @@ const Glcc = (propsF) => { }, []) useEffect(()=>{ - // 获取用户课题报名信息 - current_user && current_user.login && getStudentApplyInfo({userId: current_user.user_id}).then(response=>{ + // 获取用户课题报名信息(todo:学生报名阶段请求) + false && current_user && current_user.login && getStudentApplyInfo({userId: current_user.user_id}).then(response=>{ if(response && response.message === "success"){ // setData(response.data.rows); const data = {};