提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
491 B

3 weeks ago
  1. <template>
  2. <div class="home">
  3. <img src="" alt=""></img>
  4. </div>
  5. </template>
  6. <script lang="ts" setup name="Home">
  7. import { onMounted } from 'vue';
  8. import { useRouter } from 'vue-router';
  9. const router = useRouter()
  10. onMounted(()=>{
  11. setTimeout(()=>{
  12. router.push('/news')
  13. },3000)
  14. }
  15. )
  16. </script>
  17. <style>
  18. .home{
  19. display: flex;
  20. justify-content: center;
  21. align-items: center;
  22. height: 100vh;
  23. background-color: #f5f5f5;
  24. color: #333;
  25. }
  26. </style>