Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
a288f84b
Commit
a288f84b
authored
Aug 26, 2021
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 优化验证码获取
parent
d3657e68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Phone.tsx
src/components/NiceForm/components/Phone.tsx
+3
-1
No files found.
src/components/NiceForm/components/Phone.tsx
View file @
a288f84b
...
...
@@ -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
)
}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment