This commit is contained in:
ailanyin
2023-05-29 10:05:24 +08:00
parent 45af378c51
commit e0550f9e91
5 changed files with 148 additions and 78 deletions

View File

@ -169,7 +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;