layout.vue 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!--
  2. * @Author: aliyun0758874076 2300202994@qq.com
  3. * @Date: 2023-09-14 10:59:00
  4. * @LastEditors: aliyun0758874076 2300202994@qq.com
  5. * @LastEditTime: 2023-09-18 16:03:09
  6. * @FilePath: \jufeng-pc-settle\src\views\layout.vue
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. -->
  9. <template>
  10. <div class="layout">
  11. <v-header class="vHeader"></v-header>
  12. <keep-alive>
  13. <router-view class="centBox"></router-view>
  14. </keep-alive>
  15. </div>
  16. </template>
  17. <script>
  18. import VHeader from '@/components/base/v-header'
  19. export default {
  20. name: 'layout',
  21. components: {VHeader}
  22. }
  23. </script>
  24. <style lang="scss">
  25. .layout {
  26. flex-direction: column;
  27. height: 100vh;
  28. display: flex;
  29. background-image: url("../assets/images/personal-bc.webp");
  30. background-repeat: no-repeat;
  31. background-size: 100% 100%;
  32. }
  33. .vHeader {
  34. flex-shrink: 0;
  35. }
  36. .centBox {
  37. flex-grow: 1;
  38. }
  39. </style>