diff --git a/src/glcc/project/index.jsx b/src/glcc/project/index.jsx index 32bbe7315..ecd9399e2 100644 --- a/src/glcc/project/index.jsx +++ b/src/glcc/project/index.jsx @@ -30,7 +30,7 @@ function Project(propsF) {
-
学生报名时间: {id === '2023' ? '2023年6月4日-6月21日' : '2022年5月26日-6月24日'}
+
学生报名时间: {id === '2022' ? '2022年5月26日-6月24日' : '2023年6月4日-6月21日'}
课题列表 diff --git a/src/glcc/project/projectList/index.jsx b/src/glcc/project/projectList/index.jsx index ab303c2d4..4ae2a9e9d 100644 --- a/src/glcc/project/projectList/index.jsx +++ b/src/glcc/project/projectList/index.jsx @@ -31,8 +31,10 @@ function ProjectList({ applyTaskId, location, match, applyTask, round, period, m if (response && response.message === "success") { let dataArr = response.data.rows; dataArr.forEach(i => { - let urlArr = i.gitlinkUrl.split('/'); - i.gitlinkLastUrl = urlArr.pop() || urlArr.pop(); + // 兼容url最后带/的情况 + let urlArr = i.gitlinkUrl.endsWith('/') ? i.gitlinkUrl.substring(0, i.gitlinkUrl.length-1).split('/') : i.gitlinkUrl.split('/'); + // 直接使用last url会导致命中css + i.gitlinkLastUrl = `${urlArr.pop()}glcc`; i.gitlinkLastUrl = i.gitlinkLastUrl.replace(/\./g, ''); }); if (gitlinkLastUrl) { @@ -90,7 +92,7 @@ function ProjectList({ applyTaskId, location, match, applyTask, round, period, m overlayClassName='projectItemPopover' autoAdjustOverflow={false} > -
+
{!gitlinkLastUrl && !openmmlab && item.recommendFlag ? : ''}