mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-19 09:24:46 +08:00
28 lines
482 B
Vue
28 lines
482 B
Vue
<template>
|
|
<div class="home">
|
|
<img src="http://www.atguigu.com/images/index_new/logo.png" alt="">
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { onMounted } from 'vue'
|
|
import { useRouter } from 'vue-router'
|
|
|
|
const router = useRouter()
|
|
|
|
onMounted(() =>{
|
|
setTimeout(()=>{
|
|
//编程式路由导航
|
|
router.push('/about')
|
|
}, 3000)
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
.home {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
}
|
|
</style> |