Commit 9e9bc52d authored by 周宏民's avatar 周宏民

fix: 修改登录 短信验证码 会出现 图形验证的bug,修改短信验证接口错误处理

parent f7db64cf
Pipeline #95196 waiting for manual action with stages
...@@ -104,7 +104,7 @@ const appReducer = (state = initialState, action) => { ...@@ -104,7 +104,7 @@ const appReducer = (state = initialState, action) => {
action.data.verificationCodeTimeOut || action.data.VerificationConfig?.VerificationCodeTimeOut || 1; action.data.verificationCodeTimeOut || action.data.VerificationConfig?.VerificationCodeTimeOut || 1;
temp.verificationCodeType = temp.verificationCodeType =
action.data.verificationCodeType || temp.isVerificationCode action.data.verificationCodeType || temp.isVerificationCode
? action.data.VerificationConfig?.VerificationCodeType || '' ? action.data.verificationCodeType || action.data.VerificationConfig?.VerificationCodeType || ''
: ''; : '';
// temp.isVerificationCode 为false 时,不能用短信验证码 // temp.isVerificationCode 为false 时,不能用短信验证码
// 密码校验 // 密码校验
......
...@@ -211,11 +211,11 @@ const LoginItem = props => { ...@@ -211,11 +211,11 @@ const LoginItem = props => {
client, client,
}) })
.then(res => { .then(res => {
if (res?.isSuccess) { if (res?.data?.isSuccess) {
setExt(res.ext); setExt(res.ext);
setTiming(true); setTiming(true);
} else { } else {
res?.msg && message.error(res.msg); res?.data?.msg && message.error(res.data.msg);
} }
}) })
.catch(error => { .catch(error => {
......
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