提交 a5abbb59 编写于 作者: Cano1997's avatar Cano1997

update: 忘记密码添加验证码提示

上级 d0e2b16b
......@@ -102,6 +102,17 @@ export const ForgetPassword = defineComponent({
const { loginName } = userData;
ibiz.net
.post(`/v7/forgetPwd/sendVerificationCode/${loginName}`, {})
.then((res: IData) => {
if (res.ok) {
ibiz.notification.success({
title: '获取验证码成功',
});
} else {
ibiz.notification.error({
title: res.data?.message || '获取验证码失败',
});
}
})
.catch((err: IData) => {
ibiz.notification.error({
title: (err as IData).response?.data?.message || '获取验证码失败',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册