token expire, remove console

This commit is contained in:
2021-08-24 20:08:42 -05:00
parent 3b2a06b043
commit a55f45cafd
10 changed files with 279 additions and 179 deletions

View File

@@ -115,8 +115,7 @@ export default {
this.$axios
.get("/ingreso", axiosHeader)
.then((res) => {
console.log(res.data.data);
this.ingresos = res.data.data;
this.ingresos = res.data.data;
})
.catch((e) => console.log(e));
},
@@ -130,12 +129,10 @@ export default {
},
};
const toSend = this.newIngreso;
console.log(axiosHeader.data);
this.$axios
.post("/ingreso", toSend, axiosHeader)
.then((res) => {
this.clearFormIngreso();
console.log(res.data.status);
this.getIngresos();
})
.catch((e) => console.log(e));
@@ -147,12 +144,10 @@ export default {
},
};
const toSend = this.newIngreso;
console.log(axiosHeader.data);
this.$axios
.put("/ingreso", toSend, axiosHeader)
.then((res) => {
this.clearFormIngreso();
console.log(res.data.status);
this.getIngresos();
})
.catch((e) => console.log(e));
@@ -176,7 +171,6 @@ export default {
this.$axios
.delete("/ingreso", axiosHeader)
.then((res) => {
console.log(res.data);
this.getIngresos();
this.clearFormIngreso();
})