diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index 98df760d7..7fea77b35 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -1350,7 +1350,7 @@ class Listofworks extends Component { console.log("1350"); console.log(response); if(response.data.status === 200){ - window.open(url, '_blank'); + window.open("/api"+url, '_blank'); }else{ @@ -1375,7 +1375,7 @@ class Listofworks extends Component { console.log("1374"); console.log(response); if(response.data.status=== 200){ - window.open(url, '_blank'); + window.open("/api"+url, '_blank'); } }).catch((error) => { @@ -1531,8 +1531,8 @@ class Listofworks extends Component { {this.props.isAdmin()?