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"> <div className="router-main">
<Header /> <Header />
<Route path="/" component={Home} exact /> <Route path="/" component={Home} exact />
<Route path="/group" component={ ProjectGroups } > <Route path="/group" component={ requireAuthentication(ProjectGroups) } >
<Route exact path="/group/:groupName" component={ ProjectGroups } /> <Route exact path="/group/:groupName" component={ ProjectGroups } />
</Route> </Route>
<Route path="/Interface" component={requireAuthentication(Interface)} /> <Route path="/Interface" component={requireAuthentication(Interface)} />

View File

@ -139,8 +139,8 @@ class HeaderCom extends Component {
onClick={this.linkTo} onClick={this.linkTo}
selectedKeys={[curKey]} selectedKeys={[curKey]}
> >
<Menu.Item key="/ProjectGroups"> <Menu.Item key="/group">
<Link to="/ProjectGroups">项目广场</Link> <Link to="/group">项目广场</Link>
</Menu.Item> </Menu.Item>
</Menu> </Menu>
<div className="user-toolbar"> <div className="user-toolbar">