dev_cs
杨树林 6 years ago
parent 0d911b37de
commit ff224463c8

@ -63,7 +63,7 @@ class TabRightComponents extends Component{
}) })
} }
}else { }else {
this.props.slowDownload(url) this.props.slowDownload(url);
// this.props.showNotification(`正在下载中`); // this.props.showNotification(`正在下载中`);
// window.open("/api"+url, '_blank'); // window.open("/api"+url, '_blank');
} }

@ -1033,6 +1033,7 @@ class Listofworksstudentone extends Component {
this.student(); this.student();
console.log("Listofworksstudentone---------------"); console.log("Listofworksstudentone---------------");
console.log(this.props); console.log(this.props);
console.log(JSON.stringify(this.props));
} }
isupdatas = () => { isupdatas = () => {
var homeworkid = this.props.match.params.homeworkid; var homeworkid = this.props.match.params.homeworkid;
@ -2475,8 +2476,7 @@ class Listofworksstudentone extends Component {
}) })
} }
}else { }else {
this.props.showNotification(`正在下载中`); this.props.slowDownload(url);
window.open("/api"+url, '_blank');
} }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
@ -2500,6 +2500,7 @@ class Listofworksstudentone extends Component {
console.log("Listofworksstudentone+++++++++"); console.log("Listofworksstudentone+++++++++");
console.log(this.props); console.log(this.props);
console.log(JSON.stringify(this.props));
return ( return (
this.props.isAdmin() === true ? this.props.isAdmin() === true ?
( (

Loading…
Cancel
Save