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

@@ -136,7 +136,6 @@ export default {
this.$axios
.get("/compras", axiosHeader)
.then((res) => {
console.log(res.data.data);
this.compras = res.data.data;
})
.catch((e) => console.log(e));
@@ -151,12 +150,11 @@ export default {
},
};
const toSend = this.newCompra;
console.log(axiosHeader.data);
this.$axios
.post("/compra", toSend, axiosHeader)
.then((res) => {
this.clearFormCompra();
console.log(res.data.status);
this.getCompras();
})
.catch((e) => console.log(e));
@@ -168,12 +166,10 @@ export default {
},
};
const toSend = this.newCompra;
console.log(axiosHeader.data);
this.$axios
.put("/compra", toSend, axiosHeader)
.then((res) => {
this.clearFormCompra();
console.log(res.data.status);
this.getCompras();
})
.catch((e) => console.log(e));
@@ -183,7 +179,7 @@ export default {
var reg_edit = this.compras.filter((ic) => ic._id===id)[0];
this.newCompra = JSON.parse(JSON.stringify(reg_edit));
this.openForm = true;
console.log(reg_edit)
},
deleteCompra(id) {
@@ -198,7 +194,6 @@ export default {
this.$axios
.delete("/compra", axiosHeader)
.then((res) => {
console.log(res.data);
this.getCompras();
this.clearFormCompra();
})
@@ -214,7 +209,6 @@ export default {
},
getIcon(row, column, cellValue, index) {
const found = this.$store.state.categorias.filter((ic) => ic.name === cellValue)[0];
//console.log(found);
return `<i class="${found.icon}"></i>${cellValue}`
},