fix(AccountList): use $refs
This commit is contained in:
parent
774afbec06
commit
9dabe11cd0
|
@ -152,12 +152,13 @@ function exprBuilder(param, value) {
|
||||||
>
|
>
|
||||||
<template #body>
|
<template #body>
|
||||||
<VnTable
|
<VnTable
|
||||||
|
ref="tableRef"
|
||||||
:data-key="dataKey"
|
:data-key="dataKey"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:create="{
|
:create="{
|
||||||
urlCreate: 'VnUsers',
|
urlCreate: 'VnUsers',
|
||||||
title: t('Create user'),
|
title: t('Create user'),
|
||||||
onDataSaved: ({ id }) => tableRef.redirect(id),
|
onDataSaved: ({ id }) => $refs.tableRef.redirect(id),
|
||||||
formInitialData: {},
|
formInitialData: {},
|
||||||
}"
|
}"
|
||||||
default-mode="table"
|
default-mode="table"
|
||||||
|
|
Loading…
Reference in New Issue