401.vue 1.7 KB

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