diff --git a/src/pages/Competitions/Detail/index.tsx b/src/pages/Competitions/Detail/index.tsx index 76a0072d3..b97148740 100644 --- a/src/pages/Competitions/Detail/index.tsx +++ b/src/pages/Competitions/Detail/index.tsx @@ -173,7 +173,7 @@ const competitionDetails: FC = ({ }) return } - if(item.identifier === "gcc-courses-2022" || item.identifier === "gcc_2022_projects_type2"){ + if(item.identifier === "gcc-courses-2022" || item.identifier === "gcc_2022_projects_type2" || item.identifier === "gcc_2022_projects_type1"){ let arr = HeaderDetail.competition_modules?.filter((item:any)=>item.name === "赛事发布"); arr && arr.length > 0 && getrightdatas(arr[0]); return; @@ -344,7 +344,7 @@ const competitionDetails: FC = ({ } gotocourse(e, HeaderDetail, HeaderDetail.mode === 2 ? 'ismodel' : HeaderDetail.personal ? 'personal' : `/competitions/index/${HeaderDetail.identifier}/enroll`) } - }>{StaffDetail.enrolled ? HeaderDetail.need_attachment ? '上传作品' : '已报名' : (HeaderDetail.identifier === "gcc-courses-2022" || HeaderDetail.identifier === "gcc_2022_projects_type2" ? "前往“赛事发布”板块报名":'立即报名')} : null} + }>{StaffDetail.enrolled ? HeaderDetail.need_attachment ? '上传作品' : '已报名' : (HeaderDetail.identifier === "gcc-courses-2022" || HeaderDetail.identifier === "gcc_2022_projects_type2" || HeaderDetail.identifier === "gcc_2022_projects_type1" ? "前往“赛事发布”板块报名":'立即报名')} : null} {user.userInfo.real_name != "游客" && gotocourse(e, HeaderDetail, `/competitions/index/${HeaderDetail.identifier}/enroll`)} className={styles.myteam}>{isSuperAdmin() ? '参赛战队>>' : '我的战队>>'}} diff --git a/src/pages/Competitions/Index/index.tsx b/src/pages/Competitions/Index/index.tsx index caa591742..e776a5b7e 100755 --- a/src/pages/Competitions/Index/index.tsx +++ b/src/pages/Competitions/Index/index.tsx @@ -122,7 +122,7 @@ const competitionsPage: FC = ({ }) return } - if(item.identifier === "gcc-courses-2022" || item.identifier === "gcc_2022_projects_type2"){ + if(item.identifier === "gcc-courses-2022" || item.identifier === "gcc_2022_projects_type2" || item.identifier === "gcc_2022_projects_type1"){ openNewWindow(`/competitions/index/${item.identifier}`); return; } diff --git a/src/utils/env.ts b/src/utils/env.ts index 7b47f6d98..f17a913bc 100755 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -133,7 +133,7 @@ export const GlobalConfig: ConfigProps = { FORGE: "https://forge.educoder.net/", SSH_SERVER: "wss://webssh.educoder.net", QQLoginCB: encodeURIComponent("https://www.educoder.net"), - FORGE_SERVER:"https://gitlink.org.cn", + FORGE_SERVER:"https://www.gitlink.org.cn", }, }; export default GlobalConfig[window.ENV || "dev"]