From cf361ad002e60c6c420b6044bbb5f99706b8b464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= Date: Fri, 20 May 2022 13:34:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E6=BA=90=E5=A4=8F=E4=BB=A4=E8=90=A5?= =?UTF-8?q?=E4=BA=8C=E6=9C=9Fissue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/project/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/glcc/project/index.jsx b/src/glcc/project/index.jsx index 88dc555b..bfdd7823 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(
- 课题列表 + 课题列表 项目列表