提交 5bd5c9c7 作者: 翁进城

fix: 【目录管理】新增、编辑的目录名称超长报错500,限制20位之后不能输入

上级 02138eb2
...@@ -140,7 +140,7 @@ const AddOrEditDec: React.FC<PropsType & selfPropsType> = ({ ...@@ -140,7 +140,7 @@ const AddOrEditDec: React.FC<PropsType & selfPropsType> = ({
)} */} )} */}
<Form.Item label='目录名称' name='directoryName' rules={[{ required: true }]}> <Form.Item label='目录名称' name='directoryName' rules={[{ required: true }]}>
<Input placeholder='请输入目录名称' allowClear={true}></Input> <Input placeholder='请输入目录名称' allowClear={true} maxLength={20}></Input>
</Form.Item> </Form.Item>
{form.getFieldValue('type') == '0' && ( {form.getFieldValue('type') == '0' && (
<Form.Item <Form.Item
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论