graficas highcharts
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user