From 855bc6c35307954ba3e4c4ba06b926264fb00c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sat, 6 Jul 2019 15:52:39 +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 --- public/react/src/App.js | 2 +- .../react/src/modules/courses/shixunHomework/Listofworks.js | 5 +---- public/react/src/modules/user/Interestpage.js | 6 +++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/public/react/src/App.js b/public/react/src/App.js index 072e611c0..f7530989e 100644 --- a/public/react/src/App.js +++ b/public/react/src/App.js @@ -336,7 +336,7 @@ class App extends Component { {/* */} {/* 兴趣页面*/} - + {/**/} diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index f09256230..58c868677 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -1351,12 +1351,9 @@ class Listofworks extends Component { axios.get(url).then((response) => { if(response !== undefined){ if(response.data.status&&response.data.status===-1){ - console.log("1352"); - console.log(response); }else if(response.data.status&&response.data.status===-2){ - console.log("1356"); - console.log(response); + }else { if(type === 1){ Internshipreportsy(url,struy,".zip",'application/zip'); diff --git a/public/react/src/modules/user/Interestpage.js b/public/react/src/modules/user/Interestpage.js index 230c61da6..1a3d19e86 100644 --- a/public/react/src/modules/user/Interestpage.js +++ b/public/react/src/modules/user/Interestpage.js @@ -33,15 +33,15 @@ class InterestpageComponent extends Component { } Clickteacher=(e)=>{ console.log(e); - if(e === 1){ + if(e === "teacher"){ this.setState({ gouxuans:"teacher", }) - }else if(e === 2){ + }else if(e ==="student"){ this.setState({ gouxuans:"student", }) - }else if(e === 3){ + }else if(e === "professional"){ this.setState({ gouxuans:"professional", })