404.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <div>
  3. <div class="page-img">
  4. <img src="../assets/image/404.png" />
  5. </div>
  6. <p class="page-container"><b>Error</b> 页面加载失败!!!</p>
  7. <div class="page-button">
  8. <a @click="back" style="color:#93ADFA">点击重新加载</a>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. }
  17. },
  18. methods: {
  19. back() {
  20. // this.$router.go(-1);
  21. window.history.back()
  22. }
  23. },
  24. created() {
  25. },
  26. mounted() {
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .page-img {
  32. text-align: center;
  33. padding: 100px 0 0 0 ;
  34. img {
  35. width: 2rem;
  36. }
  37. }
  38. .page-container {
  39. font-size: 20px;
  40. text-align: center;
  41. color: rgb(192, 204, 218);
  42. b {
  43. margin-right: 30px;
  44. font-size: 26px;
  45. }
  46. }
  47. .page-button {
  48. text-align: center;
  49. margin-top: 40px;
  50. .el-button.is-round {
  51. width: 150px;
  52. margin-right:80px;
  53. }
  54. }
  55. </style>