|
|
@@ -42,28 +42,26 @@ export default class NavBar extends Component {
|
|
|
<Link to="/overview">总体说明</Link>
|
|
|
</Menu.Item>
|
|
|
<SubMenu
|
|
|
- key="sub2"
|
|
|
+ key="stocks"
|
|
|
icon={<LaptopOutlined />}
|
|
|
title="股票接口"
|
|
|
- onClick={this.go}
|
|
|
>
|
|
|
{stocksApiList.map((item) => {
|
|
|
return (
|
|
|
- <Menu.Item key={item.url}>
|
|
|
- <Link to="/stocks">{item.name}</Link>
|
|
|
+ <Menu.Item key={item.key}>
|
|
|
+ <Link to={item.url}>{item.name}</Link>
|
|
|
</Menu.Item>
|
|
|
);
|
|
|
})}
|
|
|
</SubMenu>
|
|
|
<SubMenu
|
|
|
- key="sub3"
|
|
|
+ key="indexApi"
|
|
|
icon={<NotificationOutlined />}
|
|
|
title="指数接口"
|
|
|
- onClick={this.go}
|
|
|
>
|
|
|
{indexApiList.map((item) => {
|
|
|
return (
|
|
|
- <Menu.Item key={item.url}>
|
|
|
+ <Menu.Item key={item.key}>
|
|
|
<Link to={item.url}>{item.name}</Link>
|
|
|
</Menu.Item>
|
|
|
);
|
|
|
@@ -85,8 +83,6 @@ export default class NavBar extends Component {
|
|
|
<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>
|