!44 修复验证码关闭的bug

Merge pull request !44 from 像风一样/N/A
This commit is contained in:
gx_ma
2024-08-14 08:29:48 +00:00
committed by Gitee

View File

@@ -236,7 +236,8 @@ export default {
},
getCode() {
getCodeImg().then((res) => {
this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff;
//this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff;
this.captchaOnOff = res.captchaEnabled;
if (this.captchaOnOff) {
this.codeUrl = 'data:image/gif;base64,' + res.img;
this.loginForm.uuid = res.uuid;