修改issue

This commit is contained in:
何童崇 2022-06-10 16:23:39 +08:00
parent 33609e087e
commit c9841cd2fa
2 changed files with 7 additions and 7 deletions

View File

@ -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 (

View File

@ -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([]);