mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
fix: 修改跳转路由
This commit is contained in:
parent
e052fe12d5
commit
48b0d0eba7
@ -46,7 +46,7 @@ export default class App extends Component {
|
||||
<div className="router-main">
|
||||
<Header />
|
||||
<Route path="/" component={Home} exact />
|
||||
<Route path="/group" component={ ProjectGroups } >
|
||||
<Route path="/group" component={ requireAuthentication(ProjectGroups) } >
|
||||
<Route exact path="/group/:groupName" component={ ProjectGroups } />
|
||||
</Route>
|
||||
<Route path="/Interface" component={requireAuthentication(Interface)} />
|
||||
|
@ -139,8 +139,8 @@ class HeaderCom extends Component {
|
||||
onClick={this.linkTo}
|
||||
selectedKeys={[curKey]}
|
||||
>
|
||||
<Menu.Item key="/ProjectGroups">
|
||||
<Link to="/ProjectGroups">项目广场</Link>
|
||||
<Menu.Item key="/group">
|
||||
<Link to="/group">项目广场</Link>
|
||||
</Menu.Item>
|
||||
</Menu>
|
||||
<div className="user-toolbar">
|
||||
|
Loading…
Reference in New Issue
Block a user