diff --git a/src/components/PageHeader/index.js b/src/components/PageHeader/index.js index d85e716576d3cc7702b5bf107d5c29e5994484eb..644b1e4f31329d0a8b0175a85c899b2fd1afce07 100644 --- a/src/components/PageHeader/index.js +++ b/src/components/PageHeader/index.js @@ -171,7 +171,7 @@ export default class PageHeader extends PureComponent { const clsString = classNames(styles.pageHeader, className); let tabDefaultValue; - if (tabActiveKey !== undefined && tabList) { + if (tabActiveKey === undefined && tabList) { tabDefaultValue = tabList.filter(item => item.default)[0] || tabList[0]; } const breadcrumb = this.conversionBreadcrumbList();