From 789f62b0c7d8a10bc60346cde2c7f36d93142682 Mon Sep 17 00:00:00 2001 From: "wenbo.dong" Date: Fri, 28 Jul 2017 17:42:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A6=96=E9=A1=B5=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E9=9D=A2=E5=8C=85=E5=B1=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Breadcrumb/Breadcrumb.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/client/components/Breadcrumb/Breadcrumb.js b/client/components/Breadcrumb/Breadcrumb.js index 3be0b9d1..527032f6 100644 --- a/client/components/Breadcrumb/Breadcrumb.js +++ b/client/components/Breadcrumb/Breadcrumb.js @@ -33,11 +33,14 @@ export default class BreadcrumbNavigation extends Component { Home )].concat(extraBreadcrumbItems); - console.log(pathSnippets); - return ( - - {breadcrumbItems} - - ) + if (pathSnippets.length) { + return ( + + {breadcrumbItems} + + ) + } else { + return ; + } } }