diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 663938c91..992da161c 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -535,7 +535,6 @@ const buttonTableClick = async (val, row) => { if (val == 'edit') { // 编辑 openForm('update', row) - emit('detailOpenForm', row) } else if (val == 'delete') { // 删除 handleDelete(row.id) @@ -546,6 +545,7 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const formRef = ref() const openForm = async (type: string, row?: number) => { + emit('detailOpenForm', type, row) formRef.value.open(type, row, masterParmas.value) } // form 提交