|
|
|
@ -33,12 +33,12 @@ class CompetitionContents extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
derivefun=(url)=>{
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
axios.get(url).then((response)=>{
|
|
|
|
|
if(response === undefined){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if(response.data.status&&response.data.status===-1){
|
|
|
|
|
|
|
|
|
|
this.props.showNotification(response.data.message);
|
|
|
|
|
}else if(response.data.status&&response.data.status===-2){
|
|
|
|
|
// if(response.data.message === "100"){
|
|
|
|
|
// // 已超出文件导出的上限数量(100 ),建议:
|
|
|
|
@ -54,6 +54,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
// DownloadMessageval:500
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
this.props.showNotification(response.data.message);
|
|
|
|
|
}else {
|
|
|
|
|
// this.props.showNotification(`正在下载中`);
|
|
|
|
|
// window.open("/api"+url, '_blank');
|
|
|
|
|