diff --git a/src/routes/Forms/TableForm.js b/src/routes/Forms/TableForm.js index 44f91339..f281884c 100644 --- a/src/routes/Forms/TableForm.js +++ b/src/routes/Forms/TableForm.js @@ -88,7 +88,7 @@ export default class TableForm extends PureComponent { this.clickedCancel = false; return; } - const target = this.getRowByKey(key); + const target = this.getRowByKey(key) || {}; if (!target.workId || !target.name || !target.department) { message.error('请填写完整成员信息。'); e.target.focus();