elk/pages/login/callback.vue
2022-11-18 05:32:03 +08:00

18 lines
275 B
Vue

<script setup lang="ts">
const { query } = useRoute()
onMounted(async () => {
const { login } = useClientState()
await login(query as any)
await nextTick()
await nextTick()
location.pathname = '/'
})
</script>
<template>
<div>
Login...
</div>
</template>