blob: 35a743c7c3499d4eec6b588e8af81939a499a219 [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() {
Ed Tanous7d6b44c2024-03-23 14:56:34 -070012 return '';
13 //return this.$store.getters['global/assetTag'];
Sukanya Pandeyc5c2ae92020-12-09 16:14:19 +053014 },
15 },
Derick Montaguec8636e52019-12-06 01:28:38 -060016 watch: {
Sukanya Pandeyc5c2ae92020-12-09 16:14:19 +053017 assetTag: function (tag) {
18 if (tag) {
19 document.title = `${tag} - ${this.$route.meta.title}`;
20 }
21 },
Derick Montague602e98a2020-10-21 16:20:00 -050022 $route: function (to) {
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070023 document.title = to.meta.title || 'Page is missing title';
Sukanya Pandeyc5c2ae92020-12-09 16:14:19 +053024 if (this.assetTag) {
25 document.title = `${this.assetTag} - ${to.meta.title}`;
26 }
Derick Montague602e98a2020-10-21 16:20:00 -050027 },
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070028 },
Ed Tanous7d6b44c2024-03-23 14:56:34 -070029 getters: {},
Yoshie Muranakaf15cc7a2020-09-09 10:08:14 -070030 created() {
Ed Tanous7d6b44c2024-03-23 14:56:34 -070031 document.title = '';
32 //document.title = this.$route.meta.title || 'Page is missing title';
Derick Montague602e98a2020-10-21 16:20:00 -050033 },
Derick Montaguea2988f42020-01-17 13:46:30 -060034};
35</script>
Derick Montague602e98a2020-10-21 16:20:00 -050036
37<style lang="scss">
Ed Tanous7d6b44c2024-03-23 14:56:34 -070038//@import '@/assets/styles/_obmc-custom';
39//@import './assets/styles/bootstrap/_helpers.scss';
Derick Montague602e98a2020-10-21 16:20:00 -050040</style>