This commit is contained in:
2026-04-18 13:32:57 +03:00
parent 9b12895199
commit 7cc1ff9555
7 changed files with 141 additions and 19 deletions

View File

@@ -146,4 +146,9 @@ onMounted(async () => {
const userInitials = computed(() => {
return (userName.value[0] || 'U').toUpperCase()
})
async function logout() {
await fetch('/api/logout', { method: 'POST' })
router.push('/login')
}
</script>