From f8dbe516d9264fed2f3a65db123cdbda7c158feb Mon Sep 17 00:00:00 2001 From: mingtianyihou33 Date: Mon, 30 Mar 2020 17:43:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20page-header=E7=BB=84=E4=BB=B6=E8=AE=BE?= =?UTF-8?q?=E7=BD=AEbackIcon=E4=B8=BAfalse=EF=BC=8C=E9=9A=90=E8=97=8FbackI?= =?UTF-8?q?con=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/page-header/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/page-header/index.jsx b/components/page-header/index.jsx index c84fca38d..5579cf322 100644 --- a/components/page-header/index.jsx +++ b/components/page-header/index.jsx @@ -56,7 +56,7 @@ const renderTitle = (h, prefixCls, instance) => { const subTitle = getComponentFromProp(instance, 'subTitle'); const tags = getComponentFromProp(instance, 'tags'); const extra = getComponentFromProp(instance, 'extra'); - const backIcon = getComponentFromProp(instance, 'backIcon') || ; + const backIcon = getComponentFromProp(instance, 'backIcon') !== undefined ? getComponentFromProp(instance, 'backIcon') : ; const onBack = instance.$listeners.back; const headingPrefixCls = `${prefixCls}-heading`; if (title || subTitle || tags || extra) {