diff --git a/src/views/login.vue b/src/views/login.vue index bdd86d9..5e452e9 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -110,7 +110,7 @@ export default { methods: { getCode() { getCodeImg().then(res => { - this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled; + this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled; if (this.captchaEnabled) { this.codeUrl = "data:image/gif;base64," + res.data.img; this.loginForm.uuid = res.data.uuid;