forked from Gitlink/forgeplus-react
开源夏令营二期issue
This commit is contained in:
parent
ea12d924d5
commit
cf361ad002
|
@ -34,7 +34,7 @@ function Project(propsF) {
|
|||
|
||||
useEffect(()=>{
|
||||
// 获取用户课题报名信息current_user user_id
|
||||
getStudentApplyInfo({userId: current_user && current_user.user_id}).then(response=>{
|
||||
current_user && current_user.login && getStudentApplyInfo({userId: current_user.user_id}).then(response=>{
|
||||
if(response && response.message === "success"){
|
||||
// setData(response.data.rows);
|
||||
const data = {};
|
||||
|
@ -44,12 +44,12 @@ function Project(propsF) {
|
|||
setApplyTaskId(data);
|
||||
}
|
||||
})
|
||||
},[studentInfoReset])
|
||||
},[studentInfoReset, current_user])
|
||||
return(
|
||||
<div className="glcc_project">
|
||||
<img className="glcc-banner" src={banner} alt=''></img>
|
||||
<div className='head'>
|
||||
<Link to="/glcc/student/2" className={(pathname.endsWith('/2') || pathname.endsWith('/student')) ? 'active' : ''}>课题列表</Link>
|
||||
<Link to="/glcc/student/2" className={!pathname.endsWith('/1') ? 'active' : ''}>课题列表</Link>
|
||||
<Link to="/glcc/student/1" className={pathname.endsWith('/1') ? 'active' : ''}>项目列表</Link>
|
||||
</div>
|
||||
<div className='gobackBox'>
|
||||
|
|
Loading…
Reference in New Issue