This commit is contained in:
nquidox 2025-09-16 19:59:29 +03:00
parent ee9bf054b4
commit 6166708b77

View file

@ -28,6 +28,10 @@ const formattedDate = computed(() => {
} }
}); });
const onLogout = () => {
store.logout()
}
</script> </script>
<template> <template>
@ -44,8 +48,21 @@ const formattedDate = computed(() => {
{{ formattedDate }} {{ formattedDate }}
</n-thing> </n-thing>
</n-list-item> </n-list-item>
<div class="logout-container">
<n-button type="info" class="logout" @click="onLogout">Log out</n-button>
</div>
</n-list> </n-list>
</n-card> </n-card>
</template> </template>
<style scoped></style> <style scoped>
.logout-container {
display: flex;
justify-content: center;
margin-top: 10px;
}
.logout {
min-width: 320px;
}
</style>