diff --git a/apps/web-antd/src/views/pay/app/index.vue b/apps/web-antd/src/views/pay/app/index.vue index 6ed75a0c6..b4cb23d41 100644 --- a/apps/web-antd/src/views/pay/app/index.vue +++ b/apps/web-antd/src/views/pay/app/index.vue @@ -22,22 +22,22 @@ function onRefresh() { gridApi.query(); } -const [AppModal, appModalApi] = useVbenModal({ +const [AppFormModal, appFormModalApi] = useVbenModal({ connectedComponent: appFrom, destroyOnClose: true, }); -const [ChannelModal, channelModalApi] = useVbenModal({ +const [ChannelFormModal, channelFormModalApi] = useVbenModal({ connectedComponent: channelFrom, destroyOnClose: true, }); function handleCreate() { - appModalApi.setData(null).open(); + appFormModalApi.setData(null).open(); } function handleEdit(row: Required) { - appModalApi.setData({ id: row.id }).open(); + appFormModalApi.setData({ id: row.id }).open(); } async function handleDelete(row: Required) { @@ -101,7 +101,7 @@ function isChannelExists(channels: string[], channelCode: string) { } async function openChannelForm(row: PayAppApi.App, payCode: string) { - channelModalApi.setData({ id: row.id, payCode }).open(); + channelFormModalApi.setData({ id: row.id, payCode }).open(); } const [Grid, gridApi] = useVbenVxeGrid({ @@ -140,9 +140,8 @@ const [Grid, gridApi] = useVbenVxeGrid({ - - - + +