|
@@ -51,7 +51,7 @@ class NavBar extends Component {
|
|
|
{stocksApiList.map((item) => {
|
|
{stocksApiList.map((item) => {
|
|
|
return (
|
|
return (
|
|
|
<Menu.Item key={item.key}>
|
|
<Menu.Item key={item.key}>
|
|
|
- <Link to={item.url}>{item.name}</Link>
|
|
|
|
|
|
|
+ <Link to={{pathname: item.url, state: item.data}}>{item.name}</Link>
|
|
|
</Menu.Item>
|
|
</Menu.Item>
|
|
|
);
|
|
);
|
|
|
})}
|
|
})}
|
|
@@ -83,7 +83,7 @@ class NavBar extends Component {
|
|
|
<Switch>
|
|
<Switch>
|
|
|
<Route exact path="/" component={Overview} />
|
|
<Route exact path="/" component={Overview} />
|
|
|
<Route path="/overview" component={Overview} />
|
|
<Route path="/overview" component={Overview} />
|
|
|
- <Route path="/stocks" component={Stocks} />
|
|
|
|
|
|
|
+ <Route path="/stocks" component={indexBasicInfo} />
|
|
|
<Route path="/indexApi" component={indexBasicInfo} />
|
|
<Route path="/indexApi" component={indexBasicInfo} />
|
|
|
</Switch>
|
|
</Switch>
|
|
|
</Content>
|
|
</Content>
|