Commit e6bb5ed2 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏
parents f870f5f3 15792e00
...@@ -38,7 +38,7 @@ const Phone = (props) => { ...@@ -38,7 +38,7 @@ const Phone = (props) => {
useEffect(() => { useEffect(() => {
godEvent.on('SHOW_PHONE_VALIDATE', (payload) => { godEvent.on('SHOW_PHONE_VALIDATE', (payload) => {
if (isActive) { if (!isActive) {
// 验证码在loading的时候 不能再次触发 // 验证码在loading的时候 不能再次触发
return ; return ;
} }
...@@ -103,6 +103,7 @@ const Phone = (props) => { ...@@ -103,6 +103,7 @@ const Phone = (props) => {
const handleCheckSuccess = (reset) => { const handleCheckSuccess = (reset) => {
setTimeout(() => { setTimeout(() => {
setIsShowValidate(false) setIsShowValidate(false)
handleStartSms()
instanceRef.current.canIUseSms = true instanceRef.current.canIUseSms = true
}, 1000) }, 1000)
} }
...@@ -124,6 +125,7 @@ const Phone = (props) => { ...@@ -124,6 +125,7 @@ const Phone = (props) => {
visible={isShowValidate} visible={isShowValidate}
mask mask
centered centered
destroyOnClose
footer={null} footer={null}
onCancel={() => setIsShowValidate(false)} onCancel={() => setIsShowValidate(false)}
> >
......
...@@ -243,7 +243,7 @@ const MemberDetail: React.FC<{}> = () => { ...@@ -243,7 +243,7 @@ const MemberDetail: React.FC<{}> = () => {
const publicParams = { const publicParams = {
...values, ...values,
hasImAuth: values.hasImAuth ? 1 : 0, imFlag: !!values.imFlag,
auth: treeCheckIds.map(v => ({ auth: treeCheckIds.map(v => ({
menuId: v, menuId: v,
// @todo 暂时写死为空 // @todo 暂时写死为空
......
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