123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <template>
- <div id="app">
- <main-header />
- <main id="main">
- <router-view />
- </main>
- <nodes-history />
- </div>
- </template>
- <script>
- import MainHeader from '@/pages/_partials/MainHeader'
- import NodesHistory from '@/pages/_partials/NodesHistory'
- export default {
- name: 'App',
- components: {
- MainHeader,
- NodesHistory
- },
- created () {
- if (!this.$store.state.pages.visited) {
- this.$router.push({ name: 'introduction' })
- }
- },
- metaInfo () {
- return {
- // if no subcomponents specify a metaInfo.title, try to get one from the route name.
- title: this.$t('sections.' + this.$route.name, ''),
- // all titles will be injected into this template
- titleTemplate: '%s | ' + this.$t('title')
- }
- }
- }
- </script>
- <style lang="scss">
- @import '@/assets/scss/app.scss';
- </style>
- <style lang="scss" scoped>
- </style>
|