#28 feat(api): add logout.

This commit is contained in:
2026-02-14 18:55:26 -05:00
parent 4a67f85dcb
commit 4e79ecd56b
5 changed files with 45 additions and 35 deletions

29
src/components/Logout.vue Normal file
View File

@@ -0,0 +1,29 @@
<style scoped>
p {
font-size: 1.1rem;
color: #555;
}
</style>
<template>
<v-container class="d-flex flex-column align-center justify-center" style="height: 100vh;">
<v-progress-circular indeterminate color="primary" />
<p class="mt-4">Cerrando sesión</p>
</v-container>
</template>
<script>
import AuthService from '@/services/auth';
export default {
name: 'DonConfiao',
mounted() {
this.logout();
},
methods: {
logout() {
AuthService.logout();
this.$router.push({
path: "/autenticarse"
});
},
},
};
</script>