mejoras tablas y enpoint update compras

This commit is contained in:
2021-05-02 23:47:33 -05:00
parent 3e9e50e2c3
commit a05bc18d5a
10 changed files with 235 additions and 48 deletions

View File

@@ -61,14 +61,34 @@ export const actions = {
this.$axios.get("/categoria", axiosHeader)
.then(res => {
console.log(res.data.data);
this.commit("setCategorias", res.data.data);
}).catch(error => {
console.log(error);
});
},
getMetodos() {
const axiosHeader = {
headers: {
token: this.state.auth.token,
},
};
this.$axios
.get("/metodo", axiosHeader)
.then((res) => {
this.commit("setMetodos", res.data.data);
})
.catch((e) => console.log(e));
},
}