diff --git a/src/api/system/login/index.ts b/src/api/system/login/index.ts
index 87320dc..506fda1 100644
--- a/src/api/system/login/index.ts
+++ b/src/api/system/login/index.ts
@@ -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,
+ },
+ );
+}
diff --git a/src/api/system/login/model/index.ts b/src/api/system/login/model/index.ts
index b95ba73..9eecbce 100644
--- a/src/api/system/login/model/index.ts
+++ b/src/api/system/login/model/index.ts
@@ -8,6 +8,7 @@ export interface LoginParams {
password: string;
tenantCode: string;
deviceType?: number;
+ captchaCode: string;
}
export interface RoleInfo {
diff --git a/src/components/SystemForm/src/Form.vue b/src/components/SystemForm/src/Form.vue
index 4b27e9b..bdf2c94 100644
--- a/src/components/SystemForm/src/Form.vue
+++ b/src/components/SystemForm/src/Form.vue
@@ -22,12 +22,13 @@