From 60fe53f9f0dfe9ec85097d29728827611b1b3066 Mon Sep 17 00:00:00 2001 From: "yhui.yang" Date: Fri, 28 Jul 2017 21:19:45 +0800 Subject: [PATCH] =?UTF-8?q?opti:=20header=E6=B7=BB=E5=8A=A0=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Header/Header.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/client/components/Header/Header.js b/client/components/Header/Header.js index 40908be8..660f669b 100644 --- a/client/components/Header/Header.js +++ b/client/components/Header/Header.js @@ -105,9 +105,11 @@ export default class HeaderCom extends Component { location: PropTypes.object } linkTo = (e) =>{ - this.props.changeMenuItem(e.key); - if(!this.props.login){ - message.info('请先登录',1); + if(e.key != '/doc'){ + this.props.changeMenuItem(e.key); + if(!this.props.login){ + message.info('请先登录',1); + } } } relieveLink = () => { @@ -178,6 +180,9 @@ export default class HeaderCom extends Component { 项目广场 + + 文档 +
{login?