404.vue 1.2 KB

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