From 54306ff7c58315f28723f372434d263bd23c878e Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 16 Aug 2021 13:57:34 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E6=A8=A1=E5=BC=8F=E5=90=8E=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E4=BB=8D=E8=B0=83=E7=94=A8=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/login/userlogin.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 === ""