hookehuyr

fix 修复判断错误

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