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() { | ||||
Ed Tanous | 7d6b44c | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 12 | return ''; |
13 | //return this.$store.getters['global/assetTag']; | ||||
Sukanya Pandey | c5c2ae9 | 2020-12-09 16:14:19 +0530 | [diff] [blame] | 14 | }, |
15 | }, | ||||
Derick Montague | c8636e5 | 2019-12-06 01:28:38 -0600 | [diff] [blame] | 16 | watch: { |
Sukanya Pandey | c5c2ae9 | 2020-12-09 16:14:19 +0530 | [diff] [blame] | 17 | assetTag: function (tag) { |
18 | if (tag) { | ||||
19 | document.title = `${tag} - ${this.$route.meta.title}`; | ||||
20 | } | ||||
21 | }, | ||||
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 22 | $route: function (to) { |
Yoshie Muranaka | f15cc7a | 2020-09-09 10:08:14 -0700 | [diff] [blame] | 23 | document.title = to.meta.title || 'Page is missing title'; |
Sukanya Pandey | c5c2ae9 | 2020-12-09 16:14:19 +0530 | [diff] [blame] | 24 | if (this.assetTag) { |
25 | document.title = `${this.assetTag} - ${to.meta.title}`; | ||||
26 | } | ||||
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 27 | }, |
Yoshie Muranaka | f15cc7a | 2020-09-09 10:08:14 -0700 | [diff] [blame] | 28 | }, |
Ed Tanous | 7d6b44c | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 29 | getters: {}, |
Yoshie Muranaka | f15cc7a | 2020-09-09 10:08:14 -0700 | [diff] [blame] | 30 | created() { |
Ed Tanous | 7d6b44c | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 31 | document.title = ''; |
32 | //document.title = this.$route.meta.title || 'Page is missing title'; | ||||
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 33 | }, |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 34 | }; |
35 | </script> | ||||
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 36 | |
37 | <style lang="scss"> | ||||
Ed Tanous | 7d6b44c | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 38 | //@import '@/assets/styles/_obmc-custom'; |
39 | //@import './assets/styles/bootstrap/_helpers.scss'; | ||||
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 40 | </style> |