mejoras tablas y enpoint update compras
This commit is contained in:
@@ -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));
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user