According to the docs of route object, you have access to a $route object from your components, that expose what you need. In this case
//from your component
console.log(this.$route.query.test) // outputs 'yay'
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.