fix: jump to home after user login

This commit is contained in:
三咲智子 2022-11-26 01:02:12 +08:00
parent 20ed3ce738
commit eec37470f9
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
2 changed files with 5 additions and 3 deletions

View file

@ -3,10 +3,12 @@ definePageMeta({
layout: 'none',
})
const router = useRouter()
const { query } = useRoute()
onMounted(async () => {
await loginTo(query as any)
router.push('/')
})
</script>