From b27ab27d69b008434f0bfe9f98d2cca074a0d81f Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 31 Oct 2017 15:39:59 +0800 Subject: [PATCH] Highlight first tab defaultly --- 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 7bb8b4e3..b6250a2b 100644 --- a/src/components/PageHeader/index.js +++ b/src/components/PageHeader/index.js @@ -97,7 +97,7 @@ export default class PageHeader extends PureComponent { breadcrumb = null; } - const tabDefaultValue = tabList && tabList.filter(item => item.default)[0]; + const tabDefaultValue = tabList && (tabList.filter(item => item.default)[0] || tabList[0]); return (
-- GitLab