关闭验证码功能

This commit is contained in:
2026-03-03 18:55:03 +08:00
parent eaf3f2f48f
commit 267b088242
7 changed files with 42 additions and 19 deletions

View File

@@ -82,12 +82,12 @@ declare namespace Api {
image: string
}
/** 登录参数 */
/** 登录参数(关闭验证码时可不传 code、uuid */
interface LoginParams {
username: string
password: string
code: string
uuid: string
code?: string
uuid?: string
}
/** 登录响应 */

View File

@@ -164,6 +164,8 @@ export interface EnvConfig {
VITE_USE_GZIP?: string
// 是否开启 CDN
VITE_USE_CDN?: string
// 登录页是否启用验证码,设为 false 或 0 关闭
VITE_LOGIN_CAPTCHA_ENABLED?: string
}
// 应用配置