1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-07-22 06:06:48 +01:00
elk/pages/index.vue
patak a17d3276d3
feat: /public/local timeline and timeline header (#3)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-11-15 21:50:41 +08:00

15 lines
244 B
Vue

<script setup lang="ts">
const token = useCookie('nuxtodon-token')
const router = useRouter()
// TODO: move to middleware
if (!token.value)
router.replace('/public')
else
router.replace('/home')
</script>
<template>
<div />
</template>