From d459bea3ffc9fb9366c2b0ff6e32ac975620a3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Sat, 6 May 2023 13:47:47 +0800 Subject: [PATCH] =?UTF-8?q?glcc=E5=B8=AE=E5=8A=A9=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E9=9A=90=E8=97=8Fsidebar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 2 +- src/glcc/help/index.jsx | 2 +- src/glcc/help/index.scss | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 47ee52dc9..d67c3c926 100644 --- a/src/App.js +++ b/src/App.js @@ -329,7 +329,7 @@ class App extends Component { this.Modifyloginvalue()}> {/* */} - {!pathName || (pathName && pathName.indexOf("glcc") === -1) ? : } + {!pathName || (pathName && pathName.toLowerCase().indexOf("glcc") === -1) ? : } {/* */} {/* wiki预览 */} diff --git a/src/glcc/help/index.jsx b/src/glcc/help/index.jsx index f1360d14b..aa91cc455 100644 --- a/src/glcc/help/index.jsx +++ b/src/glcc/help/index.jsx @@ -21,7 +21,7 @@ function Help(props) { projectId: locationStatus ? '1403908' : '546103' }).then(res => { if (res && res.message === "200" && Array.isArray(res.data)) { - setFileArrInit(res.data); + setFileArrInit(res.data.filter(item=>item.name !== "_Sidebar")); if (res.data.length) { setCheckItem(res.data[0]); }; diff --git a/src/glcc/help/index.scss b/src/glcc/help/index.scss index 272f157c5..0126cfa91 100644 --- a/src/glcc/help/index.scss +++ b/src/glcc/help/index.scss @@ -16,6 +16,7 @@ border:1px solid; border-color:#ffffff; margin-right: 40px; + min-height: 450px; } .wiki_title{ cursor: pointer;