default.vue 720 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div id="app">
  3. <header-view></header-view>
  4. <nuxt/>
  5. <footer-view></footer-view>
  6. <right-bar></right-bar>
  7. </div>
  8. </template>
  9. <script>
  10. import { Header, Footer, RightBar } from '~components/default'
  11. export default {
  12. name: 'app',
  13. components: {
  14. HeaderView: Header,
  15. FooterView: Footer,
  16. RightBar
  17. },
  18. head () {
  19. return {
  20. title: this.title
  21. }
  22. },
  23. computed: {
  24. title () {
  25. let path = this.$route.path
  26. if (path.startsWith('/help')) {
  27. return '帮助中心-优软商城'
  28. } else {
  29. return '【优软商城】IC电子元器件现货采购交易平台商城'
  30. }
  31. }
  32. }
  33. }
  34. </script>