1
votes

If there is a query parameter in some url, for example, some.url?inviteId=123. Then user jump to any other link of the same site, the parameter of invitedId attaches to the other url link. How to do this?

1

1 Answers

0
votes

I'm not sure I understood. But you can access the inviteId with Vue-router in any component by doing: this.$route.query;

The on created life hook or on a watch you can do something like: this.$router.push({ path: 'new-path', query: this.$route.query });

Vue Router Docs: https://router.vuejs.org/guide/