401.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div class="errPage-container">
  3. <el-button icon="arrow-left" class="pan-back-btn" @click="back">
  4. 返回
  5. </el-button>
  6. <el-row>
  7. <el-col :span="12">
  8. <h1 class="text-jumbo text-ginormous">
  9. 401错误!
  10. </h1>
  11. <h2>您没有访问权限!</h2>
  12. <h6>对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面</h6>
  13. <ul class="list-unstyled">
  14. <li class="link-type">
  15. <router-link to="/">
  16. 回首页
  17. </router-link>
  18. </li>
  19. </ul>
  20. </el-col>
  21. <el-col :span="12">
  22. <img :src="errGif" width="313" height="428" alt="Girl has dropped her ice cream.">
  23. </el-col>
  24. </el-row>
  25. </div>
  26. </template>
  27. <script setup>
  28. import errImage from "@/assets/401_images/401.gif";
  29. let { proxy } = getCurrentInstance();
  30. const errGif = ref(errImage + "?" + +new Date());
  31. function back() {
  32. if (proxy.$route.query.noGoBack) {
  33. proxy.$router.push({ path: "/" });
  34. } else {
  35. proxy.$router.go(-1);
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .errPage-container {
  41. width: 800px;
  42. max-width: 100%;
  43. margin: 100px auto;
  44. .pan-back-btn {
  45. background: #008489;
  46. color: #fff;
  47. border: none !important;
  48. }
  49. .pan-gif {
  50. margin: 0 auto;
  51. display: block;
  52. }
  53. .pan-img {
  54. display: block;
  55. margin: 0 auto;
  56. width: 100%;
  57. }
  58. .text-jumbo {
  59. font-size: 60px;
  60. font-weight: 700;
  61. color: #484848;
  62. }
  63. .list-unstyled {
  64. font-size: 14px;
  65. li {
  66. padding-bottom: 5px;
  67. }
  68. a {
  69. color: #008489;
  70. text-decoration: none;
  71. &:hover {
  72. text-decoration: underline;
  73. }
  74. }
  75. }
  76. }
  77. </style>