我有列举表id
,name
,description
,author
和date
。
像这样: <b-table dark bordered striped hover responsive :fields="fields" :items="items" @row-clicked="$router.push({path: 'edit_category'})"></b-table>
所以我想获取id
所选行的列值并将其放在@row-clicked="$router.push({path: 'edit_category', query:{id:
这里})"
这是你可以做到的:
<b-table :fields="fields"
:items="items"
@row-clicked="$router.push({path: 'edit_category',query:{id:$event.id}})"
></b-table>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句