diff --git a/apps/web-antd/src/views/infra/demo/general/demo01/index.vue b/apps/web-antd/src/views/infra/demo/general/demo01/index.vue index b76e8f0db..a500736ac 100644 --- a/apps/web-antd/src/views/infra/demo/general/demo01/index.vue +++ b/apps/web-antd/src/views/infra/demo/general/demo01/index.vue @@ -86,17 +86,17 @@ const [FormModal, formModalApi] = useVbenModal({ }); /** 创建示例联系人 */ -function onCreate() { +function handleCreate() { formModalApi.setData({}).open(); } /** 编辑示例联系人 */ -function onEdit(row: Demo01ContactApi.Demo01Contact) { +function handleEdit(row: Demo01ContactApi.Demo01Contact) { formModalApi.setData(row).open(); } /** 删除示例联系人 */ -async function onDelete(row: Demo01ContactApi.Demo01Contact) { +async function handleDelete(row: Demo01ContactApi.Demo01Contact) { const hideLoading = message.loading({ content: $t('ui.actionMessage.deleting', [row.id]), duration: 0, @@ -115,7 +115,7 @@ async function onDelete(row: Demo01ContactApi.Demo01Contact) { } /** 批量删除示例联系人 */ -async function onDeleteBatch() { +async function handleDeleteBatch() { const hideLoading = message.loading({ content: $t('ui.actionMessage.deleting'), duration: 0, @@ -173,7 +173,6 @@ onMounted(() => { class="w-full" /> -