mirror of
https://github.com/PlayEdu/backend
synced 2025-07-19 11:39:35 +08:00
学员编辑身份证号校验
This commit is contained in:
parent
b03c3be59a
commit
4d96bea08f
@ -118,7 +118,7 @@ export const MemberUpdate: React.FC<PropInterface> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onFinish = (values: any) => {
|
const onFinish = (values: any) => {
|
||||||
if (!ValidataCredentials(values.idCard)) {
|
if (values.idCard !== "" && !ValidataCredentials(values.idCard)) {
|
||||||
message.error("请输入正确的身份证号!");
|
message.error("请输入正确的身份证号!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user