diff --git a/src/glcc/project/index.jsx b/src/glcc/project/index.jsx index 88dc555ba..bfdd7823a 100644 --- a/src/glcc/project/index.jsx +++ b/src/glcc/project/index.jsx @@ -34,7 +34,7 @@ function Project(propsF) { useEffect(()=>{ // 获取用户课题报名信息current_user user_id - getStudentApplyInfo({userId: current_user && current_user.user_id}).then(response=>{ + current_user && current_user.login && getStudentApplyInfo({userId: current_user.user_id}).then(response=>{ if(response && response.message === "success"){ // setData(response.data.rows); const data = {}; @@ -44,12 +44,12 @@ function Project(propsF) { setApplyTaskId(data); } }) - },[studentInfoReset]) + },[studentInfoReset, current_user]) return(
- 课题列表 + 课题列表 项目列表