diff --git a/src/App.js b/src/App.js index ed1db5643..91dbfe3fd 100644 --- a/src/App.js +++ b/src/App.js @@ -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 ( @@ -426,7 +421,6 @@ class App extends Component { - {/* */} diff --git a/src/forge/Main/sub/ReadmeCatelogue.jsx b/src/forge/Main/sub/ReadmeCatelogue.jsx index 754f3cc22..a913b152f 100644 --- a/src/forge/Main/sub/ReadmeCatelogue.jsx +++ b/src/forge/Main/sub/ReadmeCatelogue.jsx @@ -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( -
+
) diff --git a/src/forge/Main/sub/sub.scss b/src/forge/Main/sub/sub.scss index 7716f0c50..f284edbb3 100644 --- a/src/forge/Main/sub/sub.scss +++ b/src/forge/Main/sub/sub.scss @@ -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;