review:主子表的示例代码

This commit is contained in:
YunaiV
2025-04-19 11:57:38 +08:00
parent 7622e9a666
commit 4ccda9a5a1
9 changed files with 29 additions and 28 deletions

View File

@@ -67,6 +67,7 @@ function onActionClick({ code, row }: OnActionClickParams<Demo01ContactApi.Demo0
onDelete(row);
break;
}
// TODO @puhui999edit 放在 delete 前面哈。好理解一点,修改 => 删除
case 'edit': {
onEdit(row);
break;

View File

@@ -57,7 +57,7 @@ const [Modal, modalApi] = useVbenModal({
}
if (data.id) {
// 编辑
// 编辑 TODO @puhui9991这里注释“编辑”去掉2data.id 上面的空行去掉;
modalApi.lock();
try {
data = await getDemo01Contact(data.id);