diff --git a/src/page/login/userlogin.vue b/src/page/login/userlogin.vue index 9f369f9..0f5e55d 100644 --- a/src/page/login/userlogin.vue +++ b/src/page/login/userlogin.vue @@ -117,11 +117,13 @@ props: [], methods: { refreshCode() { - getCaptcha().then(res => { - const data = res.data; - this.loginForm.key = data.key; - this.loginForm.image = data.image; - }) + if (this.website.captchaMode) { + getCaptcha().then(res => { + const data = res.data; + this.loginForm.key = data.key; + this.loginForm.image = data.image; + }) + } }, showPassword() { this.passwordType === ""