修改短信验证码校验

master
于肖磊 2025-10-23 11:17:20 +08:00
parent b82a2c2796
commit 8782159d0c
1 changed files with 1 additions and 1 deletions

View File

@ -859,7 +859,7 @@ export default {
* 处理手机号验证逻辑
*/
handle_phone_validation(com_data) {
if (com_data.is_sms_verification === '1' && com_data.is_required === '1' && isEmpty(com_data.form_value_code)) {
if (com_data.is_sms_verification === '1' && !isEmpty(com_data.form_value) && isEmpty(com_data.form_value_code)) {
return { is_error: '1', error_text: '短信验证码不能为空' };
}
com_data.common_config.format = com_data.is_telephone === '1' ? 'telephone-number' : 'phone-number';