index.vue 805 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div class="layout-404">
  3. <div class="_404">
  4. <img :src="`${$cdn}images/404.png`" alt="">
  5. <p>抱歉,您访问的页面出现了错误,请重新加载</p>
  6. <div @click="$router.push({name:'home'})">返回首页</div>
  7. </div>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. }
  13. </script>
  14. <style lang="scss" scoped>
  15. .layout-404{
  16. position: relative;
  17. min-height: 90vh;
  18. ._404{
  19. top: 50%;
  20. left: 50%;
  21. position: absolute;
  22. transform: translate(-50%,-50%);
  23. text-align: center;
  24. font-size: 16px;
  25. color: #2d2d2d;
  26. p{
  27. margin: 30px 0;
  28. }
  29. div{
  30. border: 1px solid #2d2d2d;
  31. border-radius: 8px;
  32. width: 120px;
  33. line-height: 40px;
  34. height: 40px;
  35. margin: 0 auto;
  36. cursor: pointer;
  37. }
  38. }
  39. }
  40. </style>