formato
This commit is contained in:
@@ -227,7 +227,7 @@ export default {
|
||||
noIntegrantes: 1,
|
||||
integrantes: [],
|
||||
cargando: false,
|
||||
confirmacion: false
|
||||
confirmacion: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -246,7 +246,7 @@ export default {
|
||||
nombre: "",
|
||||
apellidoPa: "",
|
||||
apellidoMa: "",
|
||||
correo: ""
|
||||
correo: "",
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -303,8 +303,8 @@ export default {
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: "#3085d6",
|
||||
cancelButtonColor: "#d33",
|
||||
confirmButtonText: "Si"
|
||||
}).then(result => {
|
||||
confirmButtonText: "Si",
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
window.location.href =
|
||||
"https://www.acatlan.unam.mx/hackaton/index.html#head";
|
||||
@@ -323,18 +323,18 @@ export default {
|
||||
apellidoMaLider: this.apellidoMaLider,
|
||||
correoLider: this.correoLider,
|
||||
carreraLider: this.carrera,
|
||||
integrantes: this.integrantes
|
||||
integrantes: this.integrantes,
|
||||
};
|
||||
axios
|
||||
.post(`${config.api}/registro`, data)
|
||||
.then(async respose => {
|
||||
.then(async (respose) => {
|
||||
this.cargando = false;
|
||||
console.log(respose.data.msj);
|
||||
await Swal.fire("Has sido registrado", "", "success");
|
||||
window.location.href =
|
||||
"https://www.acatlan.unam.mx/hackaton/index.html#head";
|
||||
})
|
||||
.catch(async error => {
|
||||
.catch(async (error) => {
|
||||
this.cargando = false;
|
||||
console.log(error.response.data.msj);
|
||||
await Swal.fire(
|
||||
@@ -343,8 +343,8 @@ export default {
|
||||
"error"
|
||||
).then((window.location.href = "#"));
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user