Regresamos al login cuando se inscribe

This commit is contained in:
Andres2908
2022-03-08 00:10:55 -06:00
parent b0c7611f67
commit 79b63ffa73
2 changed files with 4 additions and 3 deletions
-2
View File
@@ -51,7 +51,6 @@ export default {
methods: {
login() {
if (this.usuario && this.password && !this.error) {
console.log(typeof this.usuario)
const data = {
usuario: this.usuario,
password: this.password,
@@ -67,7 +66,6 @@ export default {
this.$router.push(`/${'admin'}`)
})
.catch((err) => {
console.log(err)
this.error = 'is-danger'
this.updateIsLoading(false)
this.imprimirError(err.response.data)
+4 -1
View File
@@ -95,7 +95,10 @@ export default {
hasIcon: true,
iconPack: 'mdi',
icon: 'check-circle',
onConfirm: () => onConfirm(),
onConfirm: () => {
this.$router.push(`/`)
localStorage.clear()
},
})
},
imprimirWarning(