|
|
@ -34,10 +34,12 @@ export default class PageHeader extends PureComponent { |
|
|
componentDidMount() { |
|
|
componentDidMount() { |
|
|
this.getBreadcrumbDom(); |
|
|
this.getBreadcrumbDom(); |
|
|
} |
|
|
} |
|
|
componentWillReceiveProps() { |
|
|
|
|
|
this.getBreadcrumbDom(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
componentDidUpdate(preProps) { |
|
|
|
|
|
if (preProps.tabActiveKey !== this.props.tabActiveKey) { |
|
|
|
|
|
this.getBreadcrumbDom(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
onChange = key => { |
|
|
onChange = key => { |
|
|
if (this.props.onTabChange) { |
|
|
if (this.props.onTabChange) { |
|
|
this.props.onTabChange(key); |
|
|
this.props.onTabChange(key); |
|
|
|