|
|
@@ -196,12 +196,12 @@ const DisabilityManagement: React.FC = () => {
|
|
|
// 处理创建表单提交
|
|
|
const handleCreateSubmit = createForm.handleSubmit((data) => {
|
|
|
createMutation.mutate(data);
|
|
|
- });
|
|
|
+ }, (errors) => console.debug('创建表单验证错误:', errors));
|
|
|
|
|
|
// 处理更新表单提交
|
|
|
const handleUpdateSubmit = updateForm.handleSubmit((data) => {
|
|
|
updateMutation.mutate(data);
|
|
|
- });
|
|
|
+ }, (errors) => console.debug('更新表单验证错误:', errors));
|
|
|
|
|
|
// 处理删除
|
|
|
const handleDelete = () => {
|