App.vue 450 B

1234567891011121314151617181920
  1. <template>
  2. <div id="app">
  3. <router-view />
  4. </div>
  5. </template>
  6. <script>
  7. import { getBrandTitle } from '@/utils/brand'
  8. export default {
  9. name: 'App',
  10. metaInfo() {
  11. return {
  12. title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
  13. titleTemplate: title => {
  14. return title ? `${title} - ${getBrandTitle()}` : getBrandTitle()
  15. }
  16. }
  17. }
  18. }
  19. </script>