1<template> 2 <div id="app"> 3 <router-view /> 4 </div> 5</template> 6 7<script> 8export default { 9 name: 'App', 10 computed: { 11 assetTag() { 12 return ''; 13 //return this.$store.getters['global/assetTag']; 14 }, 15 }, 16 watch: { 17 assetTag: function (tag) { 18 if (tag) { 19 document.title = `${tag} - ${this.$route.meta.title}`; 20 } 21 }, 22 $route: function (to) { 23 document.title = to.meta.title || 'Page is missing title'; 24 if (this.assetTag) { 25 document.title = `${this.assetTag} - ${to.meta.title}`; 26 } 27 }, 28 }, 29 getters: {}, 30 created() { 31 document.title = ''; 32 //document.title = this.$route.meta.title || 'Page is missing title'; 33 }, 34}; 35</script> 36 37<style lang="scss"> 38//@import '@/assets/styles/_obmc-custom'; 39//@import './assets/styles/bootstrap/_helpers.scss'; 40</style> 41