diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index b86bcfce5..98df760d7 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -1347,9 +1347,13 @@ class Listofworks extends Component { // let url = "/zip/shixun_report"; // let homeworkid = this.props.match.params.homeworkid; axios.get(url).then((response) => { - if(response.status === 200){ + console.log("1350"); + console.log(response); + if(response.data.status === 200){ window.open(url, '_blank'); + }else{ + } }).catch((error) => { console.log(error) @@ -1368,7 +1372,9 @@ class Listofworks extends Component { // } // },{responseType: 'blob'}) axios.get(url).then((response) => { - if(response.status === 200){ + console.log("1374"); + console.log(response); + if(response.data.status=== 200){ window.open(url, '_blank'); }