fix: 修改跳转路由

This commit is contained in:
yhui.yang 2017-07-25 16:24:46 +08:00
parent e052fe12d5
commit 48b0d0eba7
2 changed files with 3 additions and 3 deletions

View File

@ -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)} />

View File

@ -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">