Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #564 from hotwax/#563/unable-to-change-category
Browse files Browse the repository at this point in the history
Updated: code to change the category from any category page (#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.