forked from Gitlink/forgeplus-react
修改issue
This commit is contained in:
parent
33609e087e
commit
c9841cd2fa
|
@ -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 (
|
||||
|
|
|
@ -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([]);
|
||||
|
|
Loading…
Reference in New Issue