Commit a395b5c7 authored by 邓超's avatar 邓超

fix: 修改新增用户编辑用户限制

parent 632c2cf0
Pipeline #68596 passed with stages
......@@ -76,7 +76,7 @@ const AddUserModal = props => {
const password = addUserForm.getFieldValue('password') || '';
const phone = addUserForm.getFieldValue('phone') || '';
const email = addUserForm.getFieldValue('email') || '';
addUserForm.validateFields().then(validate => {
// 正则验证
if (loginName === '') {
notification.error({
......@@ -156,6 +156,7 @@ const AddUserModal = props => {
message.error(err);
});
}
});
};
// 密码强度验证
const changeValue = changedFields => {
......
......@@ -50,6 +50,7 @@ const EditUserModal = props => {
const oldPassword = passwordForm.getFieldValue('oldPassword');
const newPassword = passwordForm.getFieldValue('newPassword');
const passwordConfirm = passwordForm.getFieldValue('passwordConfirm');
editUserForm.validateFields().then(validate => {
// 正则验证
if (loginName === '') {
notification.error({
......@@ -147,6 +148,7 @@ const EditUserModal = props => {
message.error(err);
});
}
});
};
const title = (
<span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment