vue router link params code example
Example 1: vue router name
router.push({ name: 'user', params: { userId: 123 }})
Example 2: vue js get routes
this.$router.options.routes
router.push({ name: 'user', params: { userId: 123 }})
this.$router.options.routes