From 5eb4042edc55c36a3ef8214840b634cbc0b17bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Thu, 4 Jul 2019 22:28:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/courses/shixunHomework/Listofworks.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()?