From 62594b13e4edd97d5660311c0fbe1f09b4d79d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Wed, 13 Nov 2019 17:16:03 +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/modules/home/shixunsHome.js | 19 +++++++------ public/react/src/modules/tpm/NewHeader.js | 24 ++++++++++++++--- .../src/modules/user/usersInfo/InfosBanner.js | 27 ++++++++++++++++--- 3 files changed, 55 insertions(+), 15 deletions(-) diff --git a/public/react/src/modules/home/shixunsHome.js b/public/react/src/modules/home/shixunsHome.js index ab51853ed..873461600 100644 --- a/public/react/src/modules/home/shixunsHome.js +++ b/public/react/src/modules/home/shixunsHome.js @@ -118,21 +118,24 @@ class ShixunsHome extends Component { let shixuntype=false; let pathstype=false; if(this.props&&this.props.mygetHelmetapi!=null){ - console.log(this.props.mygetHelmetapi.navbar) let shixun="/shixuns"; let paths="/paths"; this.props.mygetHelmetapi.navbar.map((item,key)=>{ var reg = RegExp(item.link); if(shixun.match(reg)){ - shixuntype=true + if(item.hidden===true){ + shixuntype=true + } } if(paths.match(reg)){ - pathstype=true + if(item.hidden===true){ + pathstype=true + } } }) + } - } return (
实践课程
TRAINING COURSE
@@ -308,10 +311,10 @@ class ShixunsHome extends Component { }实训项目
DEVELOPMENT COMMUNITY
@@ -403,7 +406,7 @@ class ShixunsHome extends Component {