mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-04 03:26:31 +00:00
fix 修复 注册页面 验证码开关不生效问题
This commit is contained in:
@@ -114,10 +114,10 @@ export default {
|
||||
methods: {
|
||||
getCode() {
|
||||
getCodeImg().then(res => {
|
||||
this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled;
|
||||
this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled;
|
||||
if (this.captchaEnabled) {
|
||||
this.codeUrl = "data:image/gif;base64," + res.img;
|
||||
this.registerForm.uuid = res.uuid;
|
||||
this.codeUrl = "data:image/gif;base64," + res.data.img;
|
||||
this.registerForm.uuid = res.data.uuid;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user