this.axios
.get(this.getApiUrlByProcess(this.process, "get_categories"),
this.getAuthHeaders())
const query = this.getAuthHeaders();
let input = this.deleteEmptyKeys(this.customer);
this.axios
.post(this.$api.create_customer, input, query)
ss
getAuthHeaders: function() {
const user = this.getUserData();
const customer = $cookies.get("user.customer_slug");
if (user != (null || undefined)) {
this.$apiHeaders["headers"]["Authorization"] = "Bearer " + user.access_token;
this.$apiHeaders["headers"]["X-Customer"] = customer;
}
return this.$apiHeaders;
},
No comments:
Post a Comment