Commit a288f84b authored by 前端-许佳敏's avatar 前端-许佳敏

fix: 优化验证码获取

parent d3657e68
......@@ -38,7 +38,7 @@ const Phone = (props) => {
useEffect(() => {
godEvent.on('SHOW_PHONE_VALIDATE', (payload) => {
if (isActive) {
if (!isActive) {
// 验证码在loading的时候 不能再次触发
return ;
}
......@@ -103,6 +103,7 @@ const Phone = (props) => {
const handleCheckSuccess = (reset) => {
setTimeout(() => {
setIsShowValidate(false)
handleStartSms()
instanceRef.current.canIUseSms = true
}, 1000)
}
......@@ -124,6 +125,7 @@ const Phone = (props) => {
visible={isShowValidate}
mask
centered
destroyOnClose
footer={null}
onCancel={() => setIsShowValidate(false)}
>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment