<router-link class="q-pa-md" :to="{ name: 'Edit'}" id="item.id">
<q-btn outline>Edit</q-btn>
</router-link>
这是我的路由器定义:
{ path: 'cms/index/edit/:id', name: 'Edit', component: () => import('components/cms/Edit.vue'), props: true },
这里是链接到路线
[[Edit
:to="{ name: 'Edit', params: { id: item.id }}"