Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 1 | <template> |
| 2 | <div id="app"> |
Derick Montague | e080a1a | 2019-12-04 16:30:08 -0600 | [diff] [blame] | 3 | <router-view /> |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 4 | </div> |
| 5 | </template> |
| 6 | |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 7 | <script> |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 8 | export default { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 9 | name: 'App', |
Sukanya Pandey | c5c2ae9 | 2020-12-09 16:14:19 +0530 | [diff] [blame] | 10 | computed: { |
| 11 | assetTag() { |
| 12 | return this.$store.getters['global/assetTag']; |
| 13 | }, |
| 14 | }, |
Derick Montague | c8636e5 | 2019-12-06 01:28:38 -0600 | [diff] [blame] | 15 | watch: { |
Sukanya Pandey | c5c2ae9 | 2020-12-09 16:14:19 +0530 | [diff] [blame] | 16 | assetTag: function (tag) { |
| 17 | if (tag) { |
| 18 | document.title = `${tag} - ${this.$route.meta.title}`; |
| 19 | } |
| 20 | }, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 21 | $route: function (to) { |
Yoshie Muranaka | f15cc7a | 2020-09-09 10:08:14 -0700 | [diff] [blame] | 22 | document.title = to.meta.title || 'Page is missing title'; |
Sukanya Pandey | c5c2ae9 | 2020-12-09 16:14:19 +0530 | [diff] [blame] | 23 | if (this.assetTag) { |
| 24 | document.title = `${this.assetTag} - ${to.meta.title}`; |
| 25 | } |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 26 | }, |
Yoshie Muranaka | f15cc7a | 2020-09-09 10:08:14 -0700 | [diff] [blame] | 27 | }, |
| 28 | created() { |
| 29 | document.title = this.$route.meta.title || 'Page is missing title'; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 30 | }, |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 31 | }; |
| 32 | </script> |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 33 | |
| 34 | <style lang="scss"> |
| 35 | @import '@/assets/styles/_obmc-custom'; |
| 36 | </style> |