mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
fix: 继续修复group bug
This commit is contained in:
parent
1f6603f70e
commit
cbbe26296c
@ -47,7 +47,7 @@ export default class App extends Component {
|
||||
<Header />
|
||||
<Route path="/" component={Home} exact />
|
||||
<Route path="/group" component={ ProjectGroups } >
|
||||
<Route exact={false} path="/group/:groupName" component={ ProjectGroups } />
|
||||
<Route exact path="/group/:groupName" component={ ProjectGroups } />
|
||||
</Route>
|
||||
<Route path="/Interface" component={requireAuthentication(Interface)} />
|
||||
<Route path="/user" component={requireAuthentication(User)} />
|
||||
|
@ -68,8 +68,9 @@ export default class GroupList extends Component {
|
||||
this.props.history.replace(`${currGroup.group_name}`);
|
||||
}
|
||||
}
|
||||
console.log(groupName);
|
||||
}else if(!groupName && this.props.groupList.length){
|
||||
this.props.history.replace(`group/${this.props.groupList[0].group_name}`);
|
||||
this.props.history.push(`/group/${this.props.groupList[0].group_name}`);
|
||||
}
|
||||
console.log(currGroup);
|
||||
this.setState({groupList: this.props.groupList});
|
||||
|
Loading…
Reference in New Issue
Block a user