mirror of
https://github.com/PlayEdu/backend
synced 2025-06-28 18:22:49 +08:00
学员身份证号验证优化
This commit is contained in:
parent
b3101b812f
commit
350e6f5897
@ -1,5 +1,5 @@
|
||||
.video-list {
|
||||
width: calc(100% -100px);
|
||||
width: calc(100% - 100px);
|
||||
height: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -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