Skip to content

Commit

Permalink
Merge pull request vuestorefront#564 from hotwax/vuestorefront#563/un…
Browse files Browse the repository at this point in the history
…able-to-change-category

Updated: code to change the category from any category page (vuestorefront#563)
  • Loading branch information
Fifciu authored Jan 7, 2021
2 parents 930cb72 + 854d6cf commit 86166de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/Category.vue
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,10 @@ export default {
$route: {
immediate: true,
handler (to, from) {
if (to.query.page) {
if (to.query.page && to.path === from.path) {
this.changePage(parseInt(to.query.page) || 1);
} else {
this.initPagination()
}
}
}
Expand Down

0 comments on commit 86166de

Please sign in to comment.