From d44f8af41d56d02f2bf4d1187eb11e15a8875941 Mon Sep 17 00:00:00 2001 From: Diro Guan Date: Fri, 9 Mar 2018 15:54:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=99=E4=B8=80=E6=AD=A5=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=B2=A1=E6=8C=87=E5=AE=9A=E9=BB=98=E8=AE=A4?= =?UTF-8?q?tab=E6=97=B6=E5=80=99=EF=BC=8Ctab=E9=BB=98=E8=AE=A4=E4=B8=BAtab?= =?UTF-8?q?list=E7=AC=AC=E4=B8=80=E4=B8=AA.=20(#1040)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PageHeader/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PageHeader/index.js b/src/components/PageHeader/index.js index d85e7165..644b1e4f 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(); -- GitLab