500.vue 1.2 KB

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