|
|
|
@ -29,7 +29,8 @@ class Fileslistitem extends Component{
|
|
|
|
|
|
|
|
|
|
showfiles=(list)=>{
|
|
|
|
|
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{
|
|
|
|
|
let {discussMessage,coursesId}=this.props
|
|
|
|
|
let file_id=discussMessage.id
|
|
|
|
@ -47,7 +48,8 @@ class Fileslistitem extends Component{
|
|
|
|
|
// }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{
|
|
|
|
|
this.setState({
|
|
|
|
|
Showoldfiles:true,
|
|
|
|
|