404.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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> 闫某人真帅 非常抱歉你访问的页面不存在!!!1234567</p> <div class="page-button">
  7. <el-button type="primary" round @click="back" icon="el-icon-s-promotion">返回首页</el-button>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. }
  16. },
  17. methods: {
  18. back() {
  19. this.$router.push('/login');
  20. }
  21. },
  22. created() {
  23. },
  24. mounted() {
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. .page-img {
  30. text-align: center;
  31. padding: 100px 0 0 0 ;
  32. img {
  33. width: 600px;
  34. }
  35. }
  36. .page-container {
  37. font-size: 20px;
  38. text-align: center;
  39. color: rgb(192, 204, 218);
  40. b {
  41. margin-right: 30px;
  42. font-size: 26px;
  43. }
  44. }
  45. .page-button {
  46. text-align: center;
  47. margin-top: 40px;
  48. .el-button.is-round {
  49. width: 150px;
  50. margin-right:80px;
  51. }
  52. }
  53. </style>