This commit is contained in:
caishi 2021-12-08 15:20:55 +08:00
parent 5ee3519c21
commit 232e09c04f
3 changed files with 11 additions and 11 deletions

View File

@ -3,7 +3,6 @@ import './App.css';
import { ConfigProvider } from 'antd'
import zhCN from 'antd/lib/locale-provider/zh_CN';
import {
// BrowserRouter as Router,
Route,
Switch
} from 'react-router-dom';
@ -79,10 +78,7 @@ const OrganizeIndex = Loadable({
loader: () => import('./forge/Team/Index'),
loading: Loading,
})
const EducoderLogin = Loadable({
loader: () => import('./modules/login/EducoderLogin'),
loading: Loading,
})
const Search = Loadable({
loader: () => import('./modules/search/'),
loading: Loading,
@ -278,8 +274,7 @@ class App extends Component {
};
render() {
const { mygetHelmetapi, pathType} = this.state;
let personal = mygetHelmetapi && mygetHelmetapi.personal;
const { pathType } = this.state;
return (
<Provider store={store}>
<ConfigProvider locale={zhCN}>
@ -426,7 +421,6 @@ class App extends Component {
<Route component={Shixunnopage} />
</Switch>
{/* </Router> */}
</MuiThemeProvider>
</ConfigProvider>
</Provider>

View File

@ -1,7 +1,6 @@
import React , { useState } from 'react';
import { Anchor , Input } from 'antd';
import './sub.scss';
import { useEffect } from 'react';
const { Link } = Anchor;
@ -40,7 +39,7 @@ function ReadmeCatelogue({ menuList , hash }) {
{
menu.map((item,key)=>{
return(
<div style={{paddingLeft:`${item.level *10}px`}} className={goHref===item.href?"items active":"items"}>
<div style={{paddingLeft:`${item.level *15}px`}} className={goHref===item.href?"items active":"items"}>
<Link href={`#${item.text}`} title={item.text} />
</div>
)

View File

@ -34,10 +34,17 @@
padding:15px;
border-bottom: 1px solid #eee;
}
.ant-anchor{
padding-left: 0px!important;
.ant-anchor-ink::before{
width: 0px;
}
}
.ant-anchor-wrapper{
margin-left: 0px;
padding:5px 15px;
padding:5px 0px;
max-height: 255px!important;
padding-left: 0px!important;
.items{
border-radius: 4px;
margin-bottom: 5px;