0👍
In Vue you can grab url parameters like this:
this.$route.query.user_type
Assuming your url is like this:
http:://example.com?user_type=exampletype
I’d also assume that you need to import the vuerouter, but i’m not 100% sure of that.
- [Vuejs]-Adding awesomefont symbol before text in component button Vue.js
- [Vuejs]-How to pass values between Vue sibling components, without using 'params'?
Source:stackexchange.com