|
|
|
@ -114,10 +114,10 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getCode() {
|
|
|
|
getCode() {
|
|
|
|
getCodeImg().then(res => {
|
|
|
|
getCodeImg().then(res => {
|
|
|
|
this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled;
|
|
|
|
this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled;
|
|
|
|
if (this.captchaEnabled) {
|
|
|
|
if (this.captchaEnabled) {
|
|
|
|
this.codeUrl = "data:image/gif;base64," + res.img;
|
|
|
|
this.codeUrl = "data:image/gif;base64," + res.data.img;
|
|
|
|
this.registerForm.uuid = res.uuid;
|
|
|
|
this.registerForm.uuid = res.data.uuid;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|