index.vue 788 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <div style="overflow-y: auto">
  3. <a-layout class="layoutBg">
  4. <Header />
  5. <a-layout-content class="main-content-wrapper">
  6. <div class="flc">
  7. <router-view v-slot="{ Component }" :key="route.fullPath" class="box-width"></router-view>
  8. </div>
  9. </a-layout-content>
  10. </a-layout>
  11. </div>
  12. </template>
  13. <script setup>
  14. import Header from './components/Header.vue'
  15. import { useRouter, useRoute } from 'vue-router'
  16. const route = useRoute()
  17. const router = useRouter()
  18. const ResourceDetailsRef = ref(null)
  19. </script>
  20. <style scoped>
  21. .flc {
  22. display: flex;
  23. justify-content: center;
  24. }
  25. .main-content-wrapper {
  26. min-height: calc(100vh - 55px);
  27. }
  28. .box-width {
  29. width:1624px!important;
  30. min-height: 90vh;
  31. }
  32. .layoutBg {
  33. background-color: #F4F5F9;
  34. }
  35. </style>