this.route.name vue code example
Example 1: vue router name
<router-link :to="{ name: 'user', params: { userId: 123 }}">User</router-link>
Example 2: vue router name
router.push({ name: 'user', params: { userId: 123 }})
<router-link :to="{ name: 'user', params: { userId: 123 }}">User</router-link>
router.push({ name: 'user', params: { userId: 123 }})