correccion login

This commit is contained in:
2022-05-24 18:06:54 -05:00
parent 033c477808
commit 301be2124c
5 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ export default {
.catch((err) => {
this.updateIsLoading(false)
this.error = 'is-danger'
this.imprimirError(err.response.data)
this.imprimirError(err.response.data.message)
})
}
},
+3 -2
View File
@@ -117,9 +117,10 @@ export default {
this.$router.push(`/${'Admin'}`)
})
.catch((err) => {
this.error = 'is-danger'
this.updateIsLoading(false)
this.imprimirError(err.response.data)
this.error = 'is-danger'
console.log(err.response.data.message)
this.imprimirError(err.response.data.message)
})
}
+1 -1
View File
@@ -27,6 +27,6 @@ export default {
// api: "http://localhost:3000",
// api: "https://890af9d598a4.ngrok.io"
// api: "https://venus.acatlan.unam.mx/premiaciones_test",
api: "https://venus.acatlan.unam.mx/produccion",
api: "https://venus.acatlan.unam.mx/premiaciones",
},
}
+2 -2
View File
@@ -25,13 +25,13 @@ export default {
updateIsLoading(booleanValue) {
this.isLoading = booleanValue
},
imprimirError(err = {}, title = '¡Hubo un error!', onConfirm = () => {}) {
imprimirError(err, title = '¡Hubo un error!', onConfirm = () => {}) {
this.$buefy.dialog.alert({
ariaRole: 'alertdialog',
ariaModal: true,
type: 'is-danger',
title,
message: err.message,
message: err,
confirmText: 'Entendido',
hasIcon: true,
iconPack: 'mdi',
+2 -2
View File
@@ -25,13 +25,13 @@ export default {
updateIsLoading(booleanValue) {
this.isLoading = booleanValue
},
imprimirError(err = {}, title = '¡Hubo un error!', onConfirm = () => {}) {
imprimirError(err, title = '¡Hubo un error!', onConfirm = () => {}) {
this.$buefy.dialog.alert({
ariaRole: 'alertdialog',
ariaModal: true,
type: 'is-danger',
title,
message: err.message,
message: err,
confirmText: 'Entendido',
hasIcon: true,
iconPack: 'mdi',