fix: jump to home after user login
This commit is contained in:
parent
20ed3ce738
commit
eec37470f9
2 changed files with 5 additions and 3 deletions
|
@ -3,10 +3,12 @@ definePageMeta({
|
|||
layout: 'none',
|
||||
})
|
||||
|
||||
const router = useRouter()
|
||||
const { query } = useRoute()
|
||||
|
||||
onMounted(async () => {
|
||||
await loginTo(query as any)
|
||||
router.push('/')
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue