mirror of
https://github.com/PlayEdu/backend
synced 2025-06-29 01:14:20 +08:00
学员身份证号验证优化
This commit is contained in:
parent
b3101b812f
commit
350e6f5897
@ -69,7 +69,7 @@ export const MemberCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
|
||||
};
|
||||
|
||||
const onFinish = (values: any) => {
|
||||
if (!ValidataCredentials(values.idCard)) {
|
||||
if (values.idCard !== "" && !ValidataCredentials(values.idCard)) {
|
||||
message.error("请输入正确的身份证号!");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user