I am using Nuxt.js, and have a dymanic page which is defined under
pages/post/_slug.vue
So, when I visit the page url, say, http://localhost:3
To read params from URL you should use this way in Nuxt:
this.$route.query.
For example
URL: https://example.com/example/?token=QWERTYUASDFGH
https://example.com/example/?token=QWERTYUASDFGH
with this line of code, you can read token:
token
this.$route.query.token
and give you QWERTYUASDFGH.
QWERTYUASDFGH