From 974ad6ad9b5cbfbc832bea37ebe0bfe194511485 Mon Sep 17 00:00:00 2001 From: mishu Date: Fri, 2 Mar 2018 09:39:09 +0200 Subject: [PATCH] closes laravel-enso/enso#54 --- src/resources/assets/js/pages/App.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/resources/assets/js/pages/App.vue b/src/resources/assets/js/pages/App.vue index 6a6d8ddb..214e14b4 100644 --- a/src/resources/assets/js/pages/App.vue +++ b/src/resources/assets/js/pages/App.vue @@ -56,9 +56,7 @@ export default { created() { this.$router.afterEach((to) => { - document.title = this.component === 'home' - ? this.documentTitle('Home') - : this.documentTitle(to.meta.title); + document.title = this.documentTitle(to.meta.title); }); this.$bus.$on('enter-app', () => { @@ -75,7 +73,7 @@ export default { ...mapMutations('auth', ['setLastRoute']), documentTitle(value) { const title = this.meta.extendedDocumentTitle - ? `value | ${this.meta.appName}` + ? `${value} | ${this.meta.appName}` : value; return this.__(title);