From a3f357e8a60443b74b64c7479113c68eb35ce1f5 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期五, 15 七月 2022 19:44:57 +0800 Subject: [PATCH] 控制轮询 --- src/scripts/validate.ts | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/validate.ts b/src/scripts/validate.ts index 402cda1..9a0dca2 100644 --- a/src/scripts/validate.ts +++ b/src/scripts/validate.ts @@ -58,9 +58,9 @@ } export function isIDCard(rule, idcode, callback) { - // if (!value) { - // return callback(new Error('杈撳叆涓嶅彲浠ヤ负绌�')); - // } + if (idcode==""||idcode===undefined) { + return callback() + } var weight_factor = [7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2]; var check_code = ['1', '0', 'X' , '9', '8', '7', '6', '5', '4', '3', '2']; -- Gitblit v1.8.0