index.vue 926 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <script setup lang="ts">
  2. import { useRouter } from "vue-router";
  3. import back from "@/assets/svg/back.svg?component";
  4. defineOptions({
  5. name: "Empty"
  6. });
  7. const router = useRouter();
  8. </script>
  9. <template>
  10. <div class="w-full h-full text-center">
  11. <h1>业务内容模块</h1>
  12. <p>使用场景:需要外嵌平台某个页面,不需要展示菜单导航以及额外模块</p>
  13. <div class="back" title="返回上一页" @click="router.go(-1)">
  14. <back class="w-[80px] h-[80px]" />
  15. </div>
  16. </div>
  17. </template>
  18. <style lang="scss" scoped>
  19. .back {
  20. position: relative;
  21. top: 50%;
  22. left: 50%;
  23. display: flex;
  24. align-items: center;
  25. justify-content: center;
  26. width: 200px;
  27. height: 200px;
  28. cursor: pointer;
  29. background: rgb(138 150 160 / 8%);
  30. border-radius: 18px;
  31. transform: translate(-50%, -50%);
  32. &:hover {
  33. background: rgb(138 150 160 / 20%);
  34. transition: background 0.6s;
  35. }
  36. }
  37. </style>