Skip to content

Conversation

@LiarCoder
Copy link

现象

这是在登录明道云的时候偶然发现的:
image

修改理由

iti.isValidNumber() 看着是 @mdfe/intl-tel-input 提供的校验能力。我看它底层的 utils.js 也是基于 libphonenumber 实现的,可能确实就是这个底层库有问题吧,但后面的 specialTelVerify() 是能正常校验的。
image

所以我认为 src/pages/accountLogin/redux/actions.js#L133/isTelRule 这里不应该用 && 逻辑,而应该用 || 逻辑。

还有一处使用 specialTelVerify() 的地方也是同理,我也顺便改了。

如果我上面想的不对的话还烦请指出并关闭PR,谢谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant