mirror of
https://github.com/ritz078/transform.git
synced 2026-11-21 00:32:56 +03:00
fixes #17
This commit is contained in:
1 parent
c52a4e52fa
commit
ea62608e96
1 file changed
+5
@@ -215,6 +215,10 @@ export default class Layout extends PureComponent {
|
||||
return path === this.props.pathname ? "active" : "";
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
this.setKey(this.props.pathname)
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.setKey(this.props.pathname);
|
||||
}
|
||||
@@ -412,6 +416,7 @@ export default class Layout extends PureComponent {
|
||||
onChange={this.onChange}
|
||||
accordion
|
||||
activeKey={this.state.activeKey}
|
||||
defaultActiveKey={this.state.activeKey}
|
||||
>
|
||||
{x.map((route, i) => {
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user