Commit d44f8af4 authored by Diro Guan's avatar Diro Guan Committed by ddcat1115

这一步应该判断没指定默认tab时候,tab默认为tablist第一个. (#1040)

parent adca7f5c
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment