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. v-motion
  15. class="font-medium text-4xl mb-4 dark:text-white"
  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. v-motion
  32. class="mb-4 text-gray-500"
  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. v-motion
  49. type="primary"
  50. :initial="{
  51. opacity: 0,
  52. y: 100
  53. }"
  54. :enter="{
  55. opacity: 1,
  56. y: 0,
  57. transition: {
  58. delay: 500
  59. }
  60. }"
  61. @click="router.push('/')"
  62. >
  63. 返回首页
  64. </el-button>
  65. </div>
  66. </div>
  67. </template>