From aa2f14059c576587fcee622061a0b711152ad0cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B0=8F=E8=81=AA?= Date: Fri, 22 Feb 2019 14:03:19 +0800 Subject: [PATCH] fix PageHeader no title bug (#3583) * fix PageHeader no title bug * default value --- src/components/PageHeader/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PageHeader/index.js b/src/components/PageHeader/index.js index 5d47b345..17c1a7e2 100644 --- a/src/components/PageHeader/index.js +++ b/src/components/PageHeader/index.js @@ -15,7 +15,7 @@ export default class PageHeader extends PureComponent { render() { const { - title, + title = '', logo, action, content, @@ -53,7 +53,7 @@ export default class PageHeader extends PureComponent { {logo &&
{logo}
}
- {title &&

{title}

} +

{title}

{action &&
{action}
}
-- GitLab