404.vue 688 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <div class="not-found login-home">
  3. <div class="login-box not-found-content">
  4. <h1>404</h1>
  5. <p>非常抱歉,您访问的页面不存在!</p>
  6. <el-button
  7. type="primary"
  8. icon="el-icon-arrow-left"
  9. @click="$router.replace({ name: 'Home' })"
  10. >返回首页</el-button
  11. >
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: "not-found",
  18. data() {
  19. return {};
  20. },
  21. methods: {},
  22. };
  23. </script>
  24. <style lang="scss" scoped>
  25. .not-found-content {
  26. color: #333;
  27. background: transparent;
  28. h1 {
  29. font-size: 150px;
  30. line-height: 1;
  31. }
  32. p {
  33. font-size: 16px;
  34. margin-bottom: 10px;
  35. }
  36. }
  37. </style>