From 7b28ebe72e0722a576d0f762ee0bb2077c1a562c 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:40:02 +0800 Subject: [PATCH] b --- public/react/src/modules/tpm/NewHeader.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index 99021dc2..e00a85fa 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -261,13 +261,9 @@ class NewHeader extends Component { if(this.props.user&&this.props.user.login=== ""||this.props.user&&this.props.user===null){ window.location.href = "/login"; - return }else if(this.state.current_user&&this.state.current_user.login=== ""||this.state.current_user&&this.state.current_user===null){ window.location.href = "/login"; - return - } - - if(sum===1){ + }else if(sum===1){ window.location.href = "/courses/new"; }else if(sum===2){ window.location.href = "/shixuns/new";