学生报名页面删除2022年的时间判断

This commit is contained in:
谢思 2023-06-06 11:48:45 +08:00
parent 5672b3a73e
commit f5b0b07f33
1 changed files with 2 additions and 12 deletions

View File

@ -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}`;
}
}, [])