blob: fc04b70ba59815aed51198b68d06fa483c60421e [file] [log] [blame]
Derick Montaguea2988f42020-01-17 13:46:30 -06001<template>
2 <div id="app">
Derick Montaguee080a1a2019-12-04 16:30:08 -06003 <router-view />
Derick Montaguea2988f42020-01-17 13:46:30 -06004 </div>
5</template>
6
Derick Montaguea2988f42020-01-17 13:46:30 -06007<script>
Derick Montaguea2988f42020-01-17 13:46:30 -06008export default {
Derick Montaguee2fd1562019-12-20 13:26:53 -06009 name: 'App',
Sukanya Pandeyc5c2ae92020-12-09 16:14:19 +053010 computed: {
11 assetTag() {
12 return this.$store.getters['global/assetTag'];
13 },
14 },
Derick Montaguec8636e52019-12-06 01:28:38 -060015 watch: {
Sukanya Pandeyc5c2ae92020-12-09 16:14:19 +053016 assetTag: function (tag) {
17 if (tag) {
18 document.title = `${tag} - ${this.$route.meta.title}`;
19 }
20 },
Derick Montague602e98a2020-10-21 16:20:00 -050021 $route: function (to) {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070022 document.title = to.meta.title || 'Page is missing title';
Sukanya Pandeyc5c2ae92020-12-09 16:14:19 +053023 if (this.assetTag) {
24 document.title = `${this.assetTag} - ${to.meta.title}`;
25 }
Derick Montague602e98a2020-10-21 16:20:00 -050026 },
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070027 },
28 created() {
29 document.title = this.$route.meta.title || 'Page is missing title';
Derick Montague602e98a2020-10-21 16:20:00 -050030 },
Derick Montaguea2988f42020-01-17 13:46:30 -060031};
32</script>
Derick Montague602e98a2020-10-21 16:20:00 -050033
34<style lang="scss">
35@import '@/assets/styles/_obmc-custom';
36</style>