|
|
@@ -3,6 +3,8 @@ import { Route, Switch } from "react-router-dom";
|
|
|
import Overview from "../../components/Overview/overview";
|
|
|
import Stocks from "../../components/StocksApi/stocks";
|
|
|
import IndexApi from "../../components/IndexApi/indexApi";
|
|
|
+import indexBasicInfo from "../../components/indexBasicInfo/indexBasicInfo";
|
|
|
+
|
|
|
import { Link } from "react-router-dom";
|
|
|
import stocksApiList from "../../StocksApiList";
|
|
|
import indexApiList from "../../IndexApiList";
|
|
|
@@ -12,7 +14,7 @@ import { Layout, Menu } from "antd";
|
|
|
import {
|
|
|
UserOutlined,
|
|
|
LaptopOutlined,
|
|
|
- NotificationOutlined,
|
|
|
+ NotificationOutlined
|
|
|
} from "@ant-design/icons";
|
|
|
const { SubMenu } = Menu;
|
|
|
const { Header, Content, Sider } = Layout;
|
|
|
@@ -20,7 +22,7 @@ export default class NavBar extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
this.state = {
|
|
|
- userInfo: {},
|
|
|
+ userInfo: {}
|
|
|
};
|
|
|
}
|
|
|
render() {
|
|
|
@@ -62,7 +64,7 @@ export default class NavBar extends Component {
|
|
|
{indexApiList.map((item) => {
|
|
|
return (
|
|
|
<Menu.Item key={item.url}>
|
|
|
- <Link to="/indexApi">{item.name}</Link>
|
|
|
+ <Link to={item.url}>{item.name}</Link>
|
|
|
</Menu.Item>
|
|
|
);
|
|
|
})}
|
|
|
@@ -75,13 +77,16 @@ export default class NavBar extends Component {
|
|
|
background: "#fff",
|
|
|
padding: 24,
|
|
|
margin: 0,
|
|
|
- minHeight: 280,
|
|
|
+ minHeight: 280
|
|
|
}}
|
|
|
>
|
|
|
<Switch>
|
|
|
<Route exact path="/overview" component={Overview} />
|
|
|
<Route path="/stocks" component={Stocks} />
|
|
|
<Route path="/indexApi" component={IndexApi} />
|
|
|
+ <Route path="/indexBasicInfo" component={indexBasicInfo} />
|
|
|
+ <Route path="/indexNow" component={indexBasicInfo} />
|
|
|
+ <Route path="/indexBefore" component={indexBasicInfo} />
|
|
|
</Switch>
|
|
|
</Content>
|
|
|
</Layout>
|