题库跳转

dev_forum
caishi 6 years ago
parent 0780f2027b
commit d276fee00b

@ -163,6 +163,9 @@ class Infos extends Component{
isRenders: false
})
}
ToBank=(url)=>{
window.location.href=url;
}
render(){
let {
@ -290,7 +293,7 @@ class Infos extends Component{
<Menu.Item key="1">实训</Menu.Item>
<Menu.Item key="2">实训课程</Menu.Item>
<Menu.Item key="3">项目</Menu.Item>
{ data && data.identity !="学生" && <Menu.Item key="4" onClick={()=>this.ToBank(`/`)}>题库</Menu.Item> }
{ data && data.identity !="学生" && <Menu.Item key="4" onClick={()=>this.ToBank(`/users/${username}?type=a_project`)}>题库</Menu.Item> }
</Menu>
</div>
</div>

Loading…
Cancel
Save