Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
result: true,
errMst: ""
});
} else if (
(keys.indexOf("required") === -1 ||
ncformUtils.smartAnalyzeVal(rules.required, {
idxChain,
data: { rootData: formData, constData: globalConfig.constants }
}) === false ||
ncformUtils.smartAnalyzeVal(
_get(rules, "required.value"), {
idxChain,
data: { rootData: formData, constData: globalConfig.constants }
}) === false
) &&
!ncformUtils.notEmptyVal(value)
) {
// 如果不存在required验证条件,且value为空时,直接验证通过
resolve({
result: true,
errMsg: ""
});
} else {
// 逐一验证
resolve(nextValidate(0));
}
});
}