index.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div class="vent-home">
  3. <div class="vent-home-header"></div>
  4. <div class="home-container">
  5. <div class="l-r-box left-box"> 111</div>
  6. <div class="l-r-box right-box"> 222</div>
  7. </div>
  8. </div>
  9. </template>
  10. <script lang="ts" setup>
  11. import { ref } from 'vue';
  12. import registerApps from '/@/qiankun';
  13. import { useGlobSetting } from '/@/hooks/setting';
  14. const globSetting = useGlobSetting();
  15. const openQianKun = globSetting.openQianKun;
  16. if (openQianKun == 'true') {
  17. if (!window.qiankunStarted) {
  18. window.qiankunStarted = true;
  19. registerApps();
  20. }
  21. }
  22. </script>
  23. <style lang="less" scoped>
  24. .vent-home {
  25. width: 100vw;
  26. height: calc(100vh);
  27. position: fixed;
  28. .vent-home-header {
  29. width: 100%;
  30. height: 110px;
  31. position: fixed;
  32. background: url('/@/assets/images/vent/home/home-header-bg.png') no-repeat;
  33. background-position-y: -26px;
  34. }
  35. .home-container {
  36. width: 100%;
  37. height: calc(100vh - 60px);
  38. display: flex;
  39. justify-content: space-between;
  40. margin-top: 60px;
  41. .l-r-box {
  42. width: 300px;
  43. background: #ffffff22;
  44. color: #fff;
  45. }
  46. }
  47. }
  48. </style>