manejo de usuarios

This commit is contained in:
2022-04-19 20:43:49 -05:00
parent a55f45cafd
commit 153f2da1f7
21 changed files with 922 additions and 56 deletions

View File

@@ -59,7 +59,7 @@
<template
slot="title"
>
<div class="photo"><img src="img/mdchaparror.png" /></div>
<div class="photo"><img :src=this.$store.state.auth.userData.image.secure_url /></div>
<b class="caret d-none d-lg-block d-xl-block"></b>
<p class="d-lg-none">Log out</p>
</template>
@@ -125,13 +125,15 @@ export default {
this.showMenu = !this.showMenu;
},
salir(){
localStorage.clear('auth');
this.$notify({
type: "danger",
icon: "tim-icons icon-alert-circle-exc",
message: "Sesión cerrada"
});
$nuxt.$router.push('/login');
this.$store.dispatch("salir");
}
}
};