修复验证码关闭的bug

后台配置了取消验证,但实际没有取消

Signed-off-by: 像风一样 <963565242@qq.com>
This commit is contained in:
像风一样
2024-08-14 07:59:03 +00:00
committed by Gitee
parent f48a7e0e4a
commit aab9710423

View File

@@ -236,7 +236,8 @@ export default {
}, },
getCode() { getCode() {
getCodeImg().then((res) => { 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) { if (this.captchaOnOff) {
this.codeUrl = 'data:image/gif;base64,' + res.img; this.codeUrl = 'data:image/gif;base64,' + res.img;
this.loginForm.uuid = res.uuid; this.loginForm.uuid = res.uuid;