修复注册页面无法显示验证码的问题

Signed-off-by: 行者孤 <fxg885@163.com>
This commit is contained in:
行者孤 2023-08-01 02:37:17 +00:00 committed by Gitee
parent 952cd0b4d3
commit ea67ae1422
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -143,10 +143,10 @@ function handleRegister() {
function getCode() {
getCodeImg().then(res => {
captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled;
captchaEnabled.value = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled;
if (captchaEnabled.value) {
codeUrl.value = "data:image/gif;base64," + res.img;
registerForm.value.uuid = res.uuid;
codeUrl.value = "data:image/gif;base64," + res.data.img;
registerForm.value.uuid = res.data.uuid;
}
});
}