fix 修复 vue3 版本注册页验证码不显示问题

This commit is contained in:
疯狂的狮子Li 2023-08-01 11:00:22 +08:00
parent fea9fdaa5f
commit e82a031dd0

View File

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