开源夏令营二期issue

This commit is contained in:
谢思 2022-05-20 13:34:29 +08:00
parent ea12d924d5
commit cf361ad002
1 changed files with 3 additions and 3 deletions

View File

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