From f5b0b07f33dfa93d45f5c9b9d19e536b3c4863db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Tue, 6 Jun 2023 11:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E6=8A=A5=E5=90=8D=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=88=A0=E9=99=A42022=E5=B9=B4=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/student/index.jsx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/glcc/student/index.jsx b/src/glcc/student/index.jsx index caf128557..f81c94cdc 100644 --- a/src/glcc/student/index.jsx +++ b/src/glcc/student/index.jsx @@ -53,19 +53,9 @@ function Apply(props) { useEffect(() => { // 进入此页面到填写页面 - // setTimeout(()=>{ - // let clientWidth = document.body.clientWidth; - // let scrollHeight = 500 * clientWidth / 1920; - // window.scrollTo(0, scrollHeight); - // },200); window.scrollTo(0, 50); - - if (new Date().getTime() < new Date('2022/05/26').getTime()) { - // 不在开源夏令营报名时间之内 - window.location.href = "/glcc/subjects"; - } else if (current_user && current_user.login) { - - } else { + // 未登录 + if (current_user && !current_user.login){ window.location.href = `/login?go_page=/glcc/student/apply/${taskId}`; } }, [])