diff --git a/src/index.ts b/src/index.ts index a2245a7..8e8bdce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -76,9 +76,8 @@ class VueBreadcrumbs implements PluginObject> { }, this.$breadcrumbs.map((crumb: RouteRecord, index: number) => { if (crumb?.meta?.breadcrumb) { - let label = this.getBreadcrumb(crumb.meta.breadcrumb); - if (label !== '') { - + const label = this.getBreadcrumb(crumb.meta.breadcrumb); + if (label?.length > 0) { return createElement( 'li', {