forked from Gitlink/forgeplus-react
update
This commit is contained in:
parent
912caedef7
commit
79ee54fbe6
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue