feat:登录-新增用户账号登录 验证码 ipBlock

1. 新增 登录的 图形校验码
2. 遗落问题,登录页的提交,表单全部统一了。没有区分类型,而且类型的枚举和校验没真正使用。还有其他功能如注册,改密码都没开出来
This commit is contained in:
lvjunzhao
2025-04-10 17:12:15 +08:00
parent 54fa34028e
commit daae3c89e7
6 changed files with 231 additions and 7 deletions

View File

@ -34,6 +34,7 @@ enum Api {
loginConfig = '/system/loginConfig',
mobileLoginCode = '/system/captcha',
mobileLoginImg = '/system/captchaImg',
checkAccountCaptcha = '/system/checkAccountCaptcha',
}
/**
@ -262,3 +263,14 @@ export function sendMobileLoginCode(params, mode: ErrorMessageMode = 'modal') {
},
);
}
export function checkAccountCaptchaApi(params, mode: ErrorMessageMode = 'modal') {
return defHttp.get(
{
url: Api.checkAccountCaptcha,
params: params,
},
{
errorMessageMode: mode,
},
);
}

View File

@ -8,6 +8,7 @@ export interface LoginParams {
password: string;
tenantCode: string;
deviceType?: number;
captchaCode: string;
}
export interface RoleInfo {