From ef84ea8529c1d6e940e01e3e65c5e63dd7546247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Thu, 27 Apr 2023 15:17:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A5=E5=8F=A3=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/apply/index.jsx | 4 ++-- src/glcc/index.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 = {};