diff --git a/src/views/login.vue b/src/views/login.vue index d60e73f..dc30082 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -25,7 +25,7 @@ - + { loading.value = false; // 重新获取验证码 - if (captchaOnOff.value) { + if (captchaEnabled.value) { getCode(); } }); @@ -127,8 +127,8 @@ function handleLogin() { function getCode() { getCodeImg().then(res => { - captchaOnOff.value = res.captchaOnOff === undefined ? true : res.captchaOnOff; - if (captchaOnOff.value) { + captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled; + if (captchaEnabled.value) { codeUrl.value = "data:image/gif;base64," + res.img; loginForm.value.uuid = res.uuid; } diff --git a/src/views/system/user/profile/resetPwd.vue b/src/views/system/user/profile/resetPwd.vue index 24717d4..053e823 100644 --- a/src/views/system/user/profile/resetPwd.vue +++ b/src/views/system/user/profile/resetPwd.vue @@ -7,7 +7,7 @@ - + 保存