From d0ff10f6e0cab94dfb84e8676c0905bcf811b651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 26 Jul 2019 17:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/index.js | 2 +- public/react/src/modules/tpm/NewHeader.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/react/src/index.js b/public/react/src/index.js index 36fbf15c..55cebf17 100644 --- a/public/react/src/index.js +++ b/public/react/src/index.js @@ -41,7 +41,7 @@ var proxy = "http://localhost:3000" // proxy = "http://testbdweb.trustie.net" // proxy = "http://testbdweb.educoder.net" // proxy ="http://192.168.2.63:3000" -// proxy='https://www.educoder.net' + proxy='http://120.27.231.56:48080' const requestMap={}; // 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求; // 如果需要支持重复的请求,考虑config里面自定义一个allowRepeat参考来控制 diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index 0281a285..3ddffebe 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -258,7 +258,8 @@ class NewHeader extends Component { } NewCoursesAndShixuns=(sum)=>{ - if(this.props.current_user&&this.props.current_user.login=== ""){ + debugger + if(this.state.current_user&&this.state.current_user.login=== ""||this.state.current_user&&this.state.current_user===null){ window.location.href = "/login"; }else{ if(sum===1){