door-alarm/web/pages/index.vue
Daniel Svitan a48d1238a2
All checks were successful
Gitea Build Action / build (push) Successful in 28s
🚧 Adds token form
2025-06-05 09:48:58 +02:00

18 lines
408 B
Vue

<template>
<main class="flex items-center justify-center min-w-screen min-h-screen">
<UButton icon="material-symbols:lock" size="xl" color="primary" variant="solid">Lock</UButton>
{{ res }}
</main>
</template>
<script lang="ts" setup>
const token = useCookie("token")
onMounted(() => {
if (!token.value) {
return navigateTo("/token")
}
console.log(token.value)
})
</script>