This commit is contained in:
caishi 2022-04-08 11:18:45 +08:00
parent 912caedef7
commit 79ee54fbe6
3 changed files with 4 additions and 4 deletions

View File

@ -173,7 +173,7 @@ const competitionDetails: FC<PageProps> = ({
})
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<PageProps> = ({
}
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" ? "前往“赛事发布”板块报名":'立即报名')}</Button> : null}
}>{StaffDetail.enrolled ? HeaderDetail.need_attachment ? '上传作品' : '已报名' : (HeaderDetail.identifier === "gcc-courses-2022" || HeaderDetail.identifier === "gcc_2022_projects_type2" || HeaderDetail.identifier === "gcc_2022_projects_type1" ? "前往“赛事发布”板块报名":'立即报名')}</Button> : null}
{user.userInfo.real_name != "游客" && <span onClick={(e) => gotocourse(e, HeaderDetail, `/competitions/index/${HeaderDetail.identifier}/enroll`)} className={styles.myteam}>{isSuperAdmin() ? '参赛战队>>' : '我的战队>>'}</span>}
</div>
</div>

View File

@ -122,7 +122,7 @@ const competitionsPage: FC<PageProps> = ({
})
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;
}

View File

@ -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"]