diff --git a/src/routes/Forms/TableForm.js b/src/routes/Forms/TableForm.js index 44f9133961a96b274ff9ecece068566d5b487737..f281884cd4873b2aa2ddd5bebfe58782717877f6 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();