Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aocneanu committed Mar 2, 2018
1 parent 727b0c5 commit 974ad6a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/resources/assets/js/pages/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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);
Expand Down

0 comments on commit 974ad6a

Please sign in to comment.