This commit is contained in:
2023-05-25 15:11:16 +08:00
parent b028c3ae87
commit 58bce3f82e

View File

@ -169,8 +169,8 @@ function handleLogin() {
function getCode() {
getCodeImg().then((res) => {
captchaEnabled.value =
res.captchaEnabled === undefined ? true : res.captchaEnabled;
captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled;
register.value = res.register === undefined ? true : res.register;
if (captchaEnabled.value) {
codeUrl.value = "data:image/gif;base64," + res.img;
loginForm.value.uuid = res.uuid;