|
@@ -211,6 +211,7 @@ function Layout() {
|
|
label="旧密码"
|
|
label="旧密码"
|
|
name="oldPassword"
|
|
name="oldPassword"
|
|
rules={[{ required: true, message: "不能为空!" }]}
|
|
rules={[{ required: true, message: "不能为空!" }]}
|
|
|
|
+ getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
|
|
>
|
|
>
|
|
<Input.Password maxLength={20} />
|
|
<Input.Password maxLength={20} />
|
|
</Form.Item>
|
|
</Form.Item>
|
|
@@ -222,6 +223,7 @@ function Layout() {
|
|
{ required: true, message: "不能为空!" },
|
|
{ required: true, message: "不能为空!" },
|
|
{ min: 6, max: 15, message: "密码长度为6-15个字符!" },
|
|
{ min: 6, max: 15, message: "密码长度为6-15个字符!" },
|
|
]}
|
|
]}
|
|
|
|
+ getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
|
|
>
|
|
>
|
|
<Input.Password
|
|
<Input.Password
|
|
maxLength={15}
|
|
maxLength={15}
|
|
@@ -233,6 +235,7 @@ function Layout() {
|
|
label="确定新密码"
|
|
label="确定新密码"
|
|
name="checkPass"
|
|
name="checkPass"
|
|
rules={[{ validator: checkPassWord }]}
|
|
rules={[{ validator: checkPassWord }]}
|
|
|
|
+ getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
|
|
>
|
|
>
|
|
<Input.Password maxLength={15} />
|
|
<Input.Password maxLength={15} />
|
|
</Form.Item>
|
|
</Form.Item>
|