correccion login
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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
@@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user