diff --git a/src/components/PageHeader/index.js b/src/components/PageHeader/index.js index 51d1bb501d2021043eece59e1ed9ee3b3178933c..8472aa521fd6b29d27bbcd20af28eafba38eedc9 100644 --- a/src/components/PageHeader/index.js +++ b/src/components/PageHeader/index.js @@ -126,6 +126,13 @@ export default class PageHeader extends PureComponent { tabDefaultValue = tabList.filter(item => item.default)[0] || tabList[0]; } + const activeKeyProps = { + defaultActiveKey: tabDefaultValue && tabDefaultValue.key, + }; + if (activeTabKey !== undefined) { + activeKeyProps.activeKey = activeTabKey; + } + return (
{breadcrumb} @@ -147,8 +154,7 @@ export default class PageHeader extends PureComponent { tabList.length && ( {