diff --git a/src/glcc/home/index.jsx b/src/glcc/home/index.jsx index 374991354..4ee06f85b 100644 --- a/src/glcc/home/index.jsx +++ b/src/glcc/home/index.jsx @@ -24,7 +24,7 @@ import './index.scss'; // period: 项目报名阶段("repoApply") // match:{params:{id=2023}} 注意默认值记得每届修改 export default (props) => { - const { current_user, history, round, match:{params:{id=2024}}, period, showLoginDialog, glccSettings, repoPublic, showMatchingBut, isResultPublic, hasRole, isMediumExamineByToTutor, isFinalExamineByToTutor, checkedTaskId, mediumExaminationPass} = props; + const { current_user, history, round, match:{params:{id=yearByRound[currentRound]}}, period, showLoginDialog, glccSettings, repoPublic, showMatchingBut, isResultPublic, hasRole, isMediumExamineByToTutor, isFinalExamineByToTutor, checkedTaskId, mediumExaminationPass} = props; useEffect(() => { if (!current_user.user_id) { history.push('/403');