403.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <script setup lang="ts">
  2. import { useRouter } from "vue-router";
  3. import noAccess from "@/assets/status/403.svg?component";
  4. defineOptions({
  5. name: "403"
  6. });
  7. const router = useRouter();
  8. </script>
  9. <template>
  10. <div class="flex justify-center items-center h-[640px]">
  11. <noAccess />
  12. <div class="ml-12">
  13. <p
  14. class="font-medium text-4xl mb-4 dark:text-white"
  15. v-motion
  16. :initial="{
  17. opacity: 0,
  18. y: 100
  19. }"
  20. :enter="{
  21. opacity: 1,
  22. y: 0,
  23. transition: {
  24. delay: 100
  25. }
  26. }"
  27. >
  28. 403
  29. </p>
  30. <p
  31. class="mb-4 text-gray-500"
  32. v-motion
  33. :initial="{
  34. opacity: 0,
  35. y: 100
  36. }"
  37. :enter="{
  38. opacity: 1,
  39. y: 0,
  40. transition: {
  41. delay: 300
  42. }
  43. }"
  44. >
  45. 抱歉,你无权访问该页面
  46. </p>
  47. <el-button
  48. type="primary"
  49. @click="router.push('/')"
  50. v-motion
  51. :initial="{
  52. opacity: 0,
  53. y: 100
  54. }"
  55. :enter="{
  56. opacity: 1,
  57. y: 0,
  58. transition: {
  59. delay: 500
  60. }
  61. }"
  62. >
  63. 返回首页
  64. </el-button>
  65. </div>
  66. </div>
  67. </template>