From 854d6cf1ec54537c3b17fd6633a4f6f44a18bdcc Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Fri, 18 Dec 2020 18:52:58 +0530 Subject: [PATCH] Updated: code to change the category for any category page (#563) --- pages/Category.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/Category.vue b/pages/Category.vue index 08f6104f5..88c8eb101 100644 --- a/pages/Category.vue +++ b/pages/Category.vue @@ -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() } } }