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
Source:stackexchange.com