diff --git a/src/glcc/student/index.jsx b/src/glcc/student/index.jsx
index 0656c3901..115f9245b 100644
--- a/src/glcc/student/index.jsx
+++ b/src/glcc/student/index.jsx
@@ -33,7 +33,7 @@ function Apply(props) {
const [loading, setLoading] = useState(false);
const [reload, setReload] = useState();
const [userApplyInfo, setUserApplyInfo] = useState(undefined);
- const [editable, setEditable] = useState(true);
+ const [editable, setEditable] = useState(isStudentApplyDate);
const [files, setFiles] = useState([]);
const [files1, setFiles1] = useState([]);
const initTask = {
@@ -56,9 +56,9 @@ function Apply(props) {
});
// window.scrollTo(0, 50);
- if (!isStudentApplyDate) {
+ if (new Date().getTime() < new Date('2022-05-26').getTime()) {
// 不在开源夏令营报名时间之内
- // window.location.href = "/glcc/student/2";
+ window.location.href = "/glcc/student/2";
} else if (current_user && current_user.login) {
} else {
@@ -390,14 +390,14 @@ function Apply(props) {
{getFieldDecorator("location", {
rules: []
})(
-
+
)}
{helper('所在年级',
'',
'grade',
[],
-