[Vuejs]-Website pagination with query string in vuejs

0๐Ÿ‘

    beforeRouteUpdate(to,from,next) {
      yourFunctionXXXXX(to.query);
      next();
   },

 beforeRouteEnter(to, from, next) {
         next((vm) => {
            vm.yourFunctionXXXXX(to.query);
       });
  },

You should first use the route pre-guard to intercept your route parameters, and then manually decide what content you should display based on the parameters

Leave a comment