diff options
Diffstat (limited to 'src/App.vue')
-rw-r--r-- | src/App.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue index 30de752b..b57a91db 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,8 +13,11 @@ export default { name: 'App', watch: { $route: function(to) { - document.title = this.$t(to.meta.title) || 'Page is missing title'; + document.title = to.meta.title || 'Page is missing title'; } + }, + created() { + document.title = this.$route.meta.title || 'Page is missing title'; } }; </script> |