hookehuyr

fix 修复判断错误

1 <!-- 1 <!--
2 * @Date: 2022-09-14 14:44:30 2 * @Date: 2022-09-14 14:44:30
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-08-23 13:51:02 4 + * @LastEditTime: 2024-08-23 14:07:29
5 * @FilePath: /data-table/src/components/IdentityField/index.vue 5 * @FilePath: /data-table/src/components/IdentityField/index.vue
6 * @Description: 身份证输入控件 6 * @Description: 身份证输入控件
7 --> 7 -->
...@@ -183,7 +183,7 @@ var checkCode = function (val) { ...@@ -183,7 +183,7 @@ var checkCode = function (val) {
183 183
184 const idCard = { 184 const idCard = {
185 verify: function (val) { 185 verify: function (val) {
186 - if (val.indexOf('*') !== -1) { // 默认值是加密模式,跳过校验 186 + if (val.indexOf('*') !== -1 && data_type.value === 'encrypt_mode') { // 默认值是加密模式,跳过校验
187 return true; 187 return true;
188 } 188 }
189 if (checkCode(val)) { 189 if (checkCode(val)) {
......