dev_forum
杨树林 5 years ago
parent df263116cc
commit 583fcca944

@ -1347,9 +1347,13 @@ class Listofworks extends Component {
// let url = "/zip/shixun_report"; // let url = "/zip/shixun_report";
// let homeworkid = this.props.match.params.homeworkid; // let homeworkid = this.props.match.params.homeworkid;
axios.get(url).then((response) => { axios.get(url).then((response) => {
if(response.status === 200){ console.log("1350");
console.log(response);
if(response.data.status === 200){
window.open(url, '_blank'); window.open(url, '_blank');
}else{
} }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
@ -1368,7 +1372,9 @@ class Listofworks extends Component {
// } // }
// },{responseType: 'blob'}) // },{responseType: 'blob'})
axios.get(url).then((response) => { axios.get(url).then((response) => {
if(response.status === 200){ console.log("1374");
console.log(response);
if(response.data.status=== 200){
window.open(url, '_blank'); window.open(url, '_blank');
} }

Loading…
Cancel
Save