1👍
If you are using Vue Router, you can extract the parameter from the route object.
console.log(this.$route.query.token) // abcd123
If you can extract it, you can see if token
has any value, and if it does, display the modal. Do the logic inside the mounted()
method.
- [Vuejs]-Setting data properties on create to use in prop
- [Vuejs]-Better style inside a vue.js app or outsource to the site embedding it?
Source:stackexchange.com