glcc帮助中心隐藏sidebar

This commit is contained in:
谢思 2023-05-06 13:47:47 +08:00
parent fab7510783
commit d459bea3ff
3 changed files with 3 additions and 2 deletions

View File

@ -329,7 +329,7 @@ class App extends Component {
<MuiThemeProvider theme={theme}>
<LoginDialog {...this.props} {...this.state} Modifyloginvalue={() => this.Modifyloginvalue()}></LoginDialog>
{/* <GlccModal /> */}
{!pathName || (pathName && pathName.indexOf("glcc") === -1) ? <SiderBar {...this.props}/> : <SiderBarHelp/>}
{!pathName || (pathName && pathName.toLowerCase().indexOf("glcc") === -1) ? <SiderBar {...this.props}/> : <SiderBarHelp/>}
{/* <Router> */}
<Switch>
{/* wiki预览 */}

View File

@ -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]);
};

View File

@ -16,6 +16,7 @@
border:1px solid;
border-color:#ffffff;
margin-right: 40px;
min-height: 450px;
}
.wiki_title{
cursor: pointer;