Pre Merge pull request !406 from 行者孤/4.X

This commit is contained in:
行者孤 2023-08-01 02:51:49 +00:00 committed by Gitee
commit 45fcaf80ac
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;
}
});
}