logout
This commit is contained in:
parent
ee9bf054b4
commit
6166708b77
1 changed files with 18 additions and 1 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue