dev_winse
杨树明 6 years ago
parent 2bae6b81c7
commit fff396a35f

@ -29,7 +29,8 @@ class Fileslistitem extends Component{
showfiles=(list)=>{ showfiles=(list)=>{
if(list.is_history_file===false){ if(list.is_history_file===false){
this.props.DownloadFileA(list.title,list.url) // this.props.DownloadFileA(list.title,list.url)
window.location.href=list.url;
}else{ }else{
let {discussMessage,coursesId}=this.props let {discussMessage,coursesId}=this.props
let file_id=discussMessage.id let file_id=discussMessage.id
@ -47,7 +48,8 @@ class Fileslistitem extends Component{
// }else{ // }else{
// //
// } // }
this.props.DownloadFileA(result.data.title,result.data.url) // this.props.DownloadFileA(result.data.title,result.data.url)
window.location.href=list.url;
}else{ }else{
this.setState({ this.setState({
Showoldfiles:true, Showoldfiles:true,

Loading…
Cancel
Save