From d16a2e5cb978deb01996e1fe07c10473afa89b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8B=B7=E9=92=89?= <41830859@qq.com> Date: Thu, 4 Apr 2019 00:35:46 +0800 Subject: [PATCH] Fix wrong tab behavior (#3903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复:有多个layout时,如果其中一个layout中没有routes,将发收到另一个layout的菜单 * tabs 激活 tabs 激活 --- src/components/PageHeaderWrapper/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PageHeaderWrapper/index.js b/src/components/PageHeaderWrapper/index.js index 7a766834..7cf822df 100644 --- a/src/components/PageHeaderWrapper/index.js +++ b/src/components/PageHeaderWrapper/index.js @@ -16,11 +16,11 @@ const { Title } = Typography; * In order to be compatible with the old version of the PageHeader * basically all the functions are implemented. */ -const renderFooter = ({ tabList, activeKeyProps, onTabChange, tabBarExtraContent }) => { +const renderFooter = ({ tabList, tabActiveKey, onTabChange, tabBarExtraContent }) => { return tabList && tabList.length ? ( { if (onTabChange) { onTabChange(key); -- GitLab