From feaf0a9778879ef211c5587a513ba4cbdabb52d0 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期四, 23 六月 2022 17:42:58 +0800
Subject: [PATCH] bug修复

---
 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