Commit de650ac2 authored by 周宏民's avatar 周宏民

fix: 短信验证码错误处理

parent d698ac3f
Pipeline #94712 passed with stages
...@@ -191,9 +191,11 @@ const LoginItem = props => { ...@@ -191,9 +191,11 @@ const LoginItem = props => {
client, client,
}) })
.then(res => { .then(res => {
if (res) { if (res?.isSuccess) {
setExt(res.ext); setExt(res.ext);
setTiming(true); setTiming(true);
} else {
res?.msg && message.error(res.msg);
} }
}) })
.catch(error => { .catch(error => {
...@@ -209,9 +211,11 @@ const LoginItem = props => { ...@@ -209,9 +211,11 @@ const LoginItem = props => {
client, client,
}) })
.then(res => { .then(res => {
if (res) { if (res?.isSuccess) {
setExt(res.ext); setExt(res.ext);
setTiming(true); setTiming(true);
} else {
res?.msg && message.error(res.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