main.vue 704 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div id="main">
  3. <header-view></header-view>
  4. <main-header></main-header>
  5. <main-nav></main-nav>
  6. <nuxt/>
  7. <footer-view></footer-view>
  8. <right-bar></right-bar>
  9. </div>
  10. </template>
  11. <script>
  12. import { Header, Footer, RightBar } from '~components/default'
  13. import { MainHeader, MainNav } from '~components/main'
  14. export default {
  15. name: 'main',
  16. components: {
  17. HeaderView: Header,
  18. FooterView: Footer,
  19. RightBar,
  20. MainHeader,
  21. MainNav
  22. }
  23. // data () {
  24. // return {
  25. // url: window.location.href
  26. // }
  27. // },
  28. // watch: {
  29. // url: function (val, oldVal) {
  30. // console.log(val)
  31. // }
  32. // }
  33. }
  34. </script>