Answer the question
In order to leave comments, you need to log in
Why doesn't params change?
Set a router like this:
const routes = [
{ path: '', component: Table, name: 'main', props: true },
{ path: '/role', component: Table, name: 'roles', props: true },
]
<router-link :to="{name: 'main', params: {role: 0}}">Все пользователи</router-link>
, router-view changes. <li v-for="r in all_roles" :key="parseInt(r.id)">
<router-link :to="{name: 'roles', params: {role: parseInt(r.id)} }"></router-link>
</li>
Answer the question
In order to leave comments, you need to log in
And if the route is so registered?
{ path: '/role/:role', component: Table, name: 'roles', props: true },
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question