404.vue 766 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div class="not-container">
  3. <img src="@/assets/img/404.png" class="not-img" alt="404" />
  4. <div class="not-detail">
  5. <p>很遗憾,您访问的页面不存在</p>
  6. <el-button type="primary" @click="router.push('/')">返回首页</el-button>
  7. </div>
  8. </div>
  9. </template>
  10. <script setup lang="ts" name="404">
  11. import { useRouter } from 'vue-router'
  12. const router = useRouter()
  13. </script>
  14. <style scoped lang="scss">
  15. .not-container{
  16. display: flex;
  17. align-items: center;
  18. justify-content: center;
  19. flex-direction: column;
  20. height: 100%;
  21. }
  22. .not-detail{
  23. display: flex;
  24. align-items: center;
  25. justify-content: center;
  26. flex-direction: column;
  27. line-height: 80px;
  28. p{
  29. font-size: 24px;
  30. }
  31. }
  32. // @import './index.scss';
  33. </style>