mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-15 11:35:06 +08:00
vue2 验证码,增加开关、修复对社交登录的支持
This commit is contained in:
@ -185,6 +185,19 @@ export function getTenantEnable() {
|
||||
return process.env.VUE_APP_TENANT_ENABLE || true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得验证码功能是否开启
|
||||
*/
|
||||
export function getCaptchaEnable() {
|
||||
if (process.env.VUE_APP_CAPTCHA_ENABLE === "true") {
|
||||
return true;
|
||||
}
|
||||
if (process.env.VUE_APP_CAPTCHA_ENABLE === "false") {
|
||||
return false;
|
||||
}
|
||||
return process.env.VUE_APP_CAPTCHA_ENABLE || true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得文档是否开启
|
||||
*/
|
||||
|
Reference in New Issue
Block a user