graficas highcharts

This commit is contained in:
2021-07-30 23:56:33 -05:00
parent 2db1144834
commit 74b37c0dfe
16 changed files with 306 additions and 103 deletions

View File

@@ -51,14 +51,14 @@ export const actions = {
//saving auth in state
this.commit("setAuth", auth);
},
getCategorias() {
async getCategorias() {
const axiosHeader = {
headers: {
token: this.state.auth.token
}
};
this.$axios
await this.$axios
.get("/categoria", axiosHeader)
.then(res => {
this.commit("setCategorias", res.data.data);
@@ -68,13 +68,13 @@ export const actions = {
});
},
getMetodos() {
async getMetodos() {
const axiosHeader = {
headers: {
token: this.state.auth.token
}
};
this.$axios
await this.$axios
.get("/metodo", axiosHeader)
.then(res => {
this.commit("setMetodos", res.data.data);