elk/pages/login/callback.vue

24 lines
352 B
Vue
Raw Normal View History

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