diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 185d41ebb..6e5f9fef4 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -304,6 +304,10 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) { } } } + +function cardClick(_, row) { + if ($props.redirect) router.push({ path: `/${$props.redirect}/${row.id}` }); +}