diff --git a/snowy-admin-web/src/views/auth/login/login.vue b/snowy-admin-web/src/views/auth/login/login.vue index 41cbafe7..016d2b21 100644 --- a/snowy-admin-web/src/views/auth/login/login.vue +++ b/snowy-admin-web/src/views/auth/login/login.vue @@ -57,7 +57,7 @@ - + { formData.value[item.configKey] = item.configValue }) + this.captchaOpen = formData.value.SNOWY_SYS_DEFAULT_CAPTCHA_OPEN tool.data.set('SNOWY_SYS_BASE_CONFIG', formData.value) store.commit('SET_sysBaseConfig', formData.value) this.refreshSwitch() @@ -185,7 +182,7 @@ // 通过开关加载内容 refreshSwitch() { // 判断是否开启验证码 - if (this.captchaOpen) { + if (this.captchaOpen === 'true') { // 加载验证码 this.loginCaptcha() // 加入校验 @@ -216,6 +213,7 @@ afterLogin(loginToken) } catch (err) { this.loading = false + this.loginCaptcha() } }) },