401.vue 778 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div class="main-box">
  3. <div class="text">权限不足,联系管理员开通把!</div>
  4. <img class="image" src="/static/image/401.webp"/>
  5. <el-button @click="goHome">返回首页</el-button>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. name: "404",
  11. methods: {
  12. goHome() {
  13. this.$router.push({
  14. name: 'Dashboard'
  15. })
  16. }
  17. }
  18. }
  19. </script>
  20. <style scoped>
  21. .main-box{
  22. width: 100%;
  23. height: 100%;
  24. display: flex;
  25. flex-direction: column;
  26. justify-content: center;
  27. align-items: center;
  28. .text{
  29. display: flex;
  30. z-index: 1;
  31. color: grey;
  32. }
  33. .image{
  34. //margin-top: -8%;
  35. width: 32%;
  36. image{
  37. aspect-ratio: 219/182;
  38. width: 100%;
  39. }
  40. }
  41. }
  42. </style>