1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 14:28:10 +09:00
elk/pages/index.vue

15 lines
244 B
Vue
Raw Normal View History

2022-11-13 14:34:43 +09:00
<script setup lang="ts">
2022-11-14 23:54:30 +09:00
const token = useCookie('nuxtodon-token')
const router = useRouter()
2022-11-15 20:54:07 +09:00
// TODO: move to middleware
2022-11-14 23:54:30 +09:00
if (!token.value)
router.replace('/public')
else
router.replace('/home')
2022-11-13 14:34:43 +09:00
</script>
<template>
<div />
2022-11-13 14:34:43 +09:00
</template>