<template>
    <div>
        <h1>您来到了哪里？点击<em @click="toLogin" style="color: blue;cursor: pointer;">这里    </em>跳转到登录页</h1>
    </div>
</template>

<script>
import { useRouter } from 'vue-router';
import router from '@/router';
export default {
    setup() {
        function toLogin(){
            router.push("/login")
        }

        return {
            toLogin,
        }
    }
}
</script>

<style lang="scss" scoped>
</style>