Answer the question
In order to leave comments, you need to log in
How to fire a function on vue-router change?
Good afternoon!
There is such a method
setCurrentUrl() {
this.currentUrl = window.location.href
console.log(this.currentUrl);
axios.post(this.currentUrl).then(response => {
this.categoryInfo = response.data.cat_info;
this.productItems = response.data.products;
this.categoriesItems = response.data.categories;
console.log(response.data);
})
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question