App.vue 784 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <div id="app">
  3. <main-header />
  4. <main id="main">
  5. <router-view :key="$route.path" />
  6. </main>
  7. <nodes-history />
  8. </div>
  9. </template>
  10. <script>
  11. import MainHeader from '@/pages/_partials/MainHeader'
  12. import NodesHistory from '@/pages/_partials/NodesHistory'
  13. export default {
  14. name: 'App',
  15. components: {
  16. MainHeader,
  17. NodesHistory
  18. },
  19. metaInfo () {
  20. return {
  21. // if no subcomponents specify a metaInfo.title, try to get one from the route name.
  22. title: this.$t('sections.' + this.$route.name, ''),
  23. // all titles will be injected into this template
  24. titleTemplate: '%s | ' + this.$t('title')
  25. }
  26. }
  27. }
  28. </script>
  29. <style lang="scss">
  30. @import '@/assets/scss/app.scss';
  31. </style>
  32. <style lang="scss" scoped>
  33. </style>