diff --git a/src/glcc/openmmlab/sliderRight/index.jsx b/src/glcc/openmmlab/sliderRight/index.jsx index 4f9f475ac..6f78cc4b6 100644 --- a/src/glcc/openmmlab/sliderRight/index.jsx +++ b/src/glcc/openmmlab/sliderRight/index.jsx @@ -8,7 +8,7 @@ let setting = { slidesToShow: 3, slidesToScroll: 1, pauseOnDotsHover: true, - autoplaySpeed: 5000000, + autoplaySpeed: 5000, centerMode: true, centerPadding: "", // pauseOnFocus: true, @@ -21,10 +21,11 @@ function SliderLeft({list,history}) { function goDetail(projectName){ - history.push({ - pathname:'/glcc/projects', - state:{projectName:projectName.replace(/ /g,'-')} - }) + // history.push({ + // pathname:'/glcc/projects', + // state:{projectName:projectName.replace(/ /g,'-')} + // }) + window.open(`/glcc/projects?projectName=${projectName}`); } return ( diff --git a/src/glcc/project/projectList/index.jsx b/src/glcc/project/projectList/index.jsx index c00b8fe89..13134d32a 100644 --- a/src/glcc/project/projectList/index.jsx +++ b/src/glcc/project/projectList/index.jsx @@ -10,8 +10,7 @@ const {Search} = Input; // 项目列表 function ProjectList({applyTaskId, current_user, showLoginDialog, isStudentApplyDate, studentApplyEnd, location,history}) { - - let openmmlab =location.state&&location.state.projectName; + let openmmlab =location.search&&location.search.split('=')[1]; // 输入搜索框 const [keyword, setKeyword] = useState(openmmlab?'openmmlab':undefined); const [data, setData] = useState([]);