dev_oauth
杨树明 6 years ago
parent 5a90c368d8
commit 6531a83dfc

@ -27,6 +27,7 @@ class DetailTop extends Component{
}
componentDidMount(){
let courseslist=[]
if(this.props.courses!=undefined&&this.props.courses.length!=0){
this.props.courses.map((item,key)=>{
if(1===key+1){
return(
@ -34,6 +35,7 @@ class DetailTop extends Component{
)
}
})
}
this.setState({
courseslist:courseslist
})

Loading…
Cancel
Save