From c2a14dada8b30bf005e701853e914d98f70d5cb5 Mon Sep 17 00:00:00 2001 From: hujunpeng Date: Wed, 26 Mar 2025 10:01:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AF=95=E5=8D=B7=E3=80=90?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=8F=8F=E8=BF=B0=E3=80=91=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E9=9D=9E=E5=BF=85=E5=A1=AB=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/examination/src/views/examPaper/examPaperAdd.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/examination/src/views/examPaper/examPaperAdd.tsx b/packages/examination/src/views/examPaper/examPaperAdd.tsx index 462a694..46beb53 100644 --- a/packages/examination/src/views/examPaper/examPaperAdd.tsx +++ b/packages/examination/src/views/examPaper/examPaperAdd.tsx @@ -127,7 +127,7 @@ class ExamPaperAdd extends Component { formValues['totalScore'] = res.data.head.totalScore; formValues['examDuration'] = res.data.head.examDuration; formValues['durationType'] = String(res.data.head.durationType); - formValues['paperContent'] = res.data.head.paperContent; + formValues['paperContent'] = res.data.head.paperContent.trim() === '' ? '' : res.data.head.paperContent; this.formRef.current.setFieldsValue(formValues); } }).catch(() => { @@ -463,7 +463,6 @@ class ExamPaperAdd extends Component { label="内容描述:" name="paperContent" style={{ width: 1190 }} - rules={[{ required: true, message: '请输入内容描述' }]} >