elk/pages/login/callback.vue

24 lines
352 B
Vue
Raw Normal View History

2022-11-15 15:48:23 +00:00
<script setup lang="ts">
2022-11-21 10:27:28 +00:00
definePageMeta({
layout: 'none',
})
2022-11-15 15:48:23 +00:00
const { query } = useRoute()
onMounted(async () => {
2022-11-17 21:32:03 +00:00
const { login } = useClientState()
2022-11-15 15:48:23 +00:00
await login(query as any)
await nextTick()
await nextTick()
location.pathname = '/'
})
</script>
<template>
2022-11-21 10:27:28 +00:00
<div h-full flex>
<div ma>
Login...
</div>
2022-11-15 15:48:23 +00:00
</div>
</template>