index.vue 708 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div class="layout">
  3. <Header />
  4. <el-container direction="vertical">
  5. <div class="container_main">
  6. <router-view></router-view>
  7. </div>
  8. <Footer />
  9. </el-container>
  10. </div>
  11. </template>
  12. <script>
  13. import Footer from "../layout/components/Footer.vue"
  14. import Header from "../layout/components/Header.vue"
  15. export default {
  16. components: {
  17. Footer,
  18. Header
  19. },
  20. data() {
  21. return {
  22. userInfo: {}
  23. }
  24. },
  25. mounted() {
  26. },
  27. }
  28. </script>
  29. <style lang="scss" scoped>
  30. .container_main
  31. {
  32. width: 80%;
  33. min-width: 1200px;
  34. margin: auto;
  35. background: #fff;
  36. border-radius: 10px;
  37. margin-top:80px;
  38. height:auto;
  39. overflow-y: auto;
  40. }
  41. </style>