diff --git a/src/components/navbar/Navbar.vue b/src/components/navbar/Navbar.vue index 5bfff9b07..f0e8cb3b6 100644 --- a/src/components/navbar/Navbar.vue +++ b/src/components/navbar/Navbar.vue @@ -168,10 +168,13 @@ export default { ]) }, genNavbarBrandNode() { + const children = this.$slots.brand != null + ? [this.$slots.brand(), this.genBurgerNode()] + : this.genBurgerNode() return createElement( 'div', { class: 'navbar-brand' }, - [this.$slots.brand(), this.genBurgerNode()] + children ) }, genBurgerNode() {