From 3d83a310ea92bc5cfe0e25136a4cec87a5d4f9de Mon Sep 17 00:00:00 2001 From: SimpleWu Date: Wed, 13 Jul 2022 11:02:46 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E8=A7=A3=E5=86=B3=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E9=AA=8C=E8=AF=81=E7=A0=81=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E5=89=8D=E7=AB=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=85=B3=E9=97=AD=E4=BA=86=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E4=BE=9D=E6=97=A7=E5=90=91=E5=90=8E=E5=8F=B0=E5=8F=91=E9=80=81?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E5=AF=BC=E8=87=B4=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/login.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue index 366560404..2e08f25a5 100644 --- a/ruoyi-ui/src/views/login.vue +++ b/ruoyi-ui/src/views/login.vue @@ -108,14 +108,13 @@ export default { this.getCookie(); }, methods: { - getCode() { - getCodeImg().then(res => { - this.captchaOnOff = res.data.captchaOnOff === undefined ? true : res.data.captchaOnOff; - if (this.captchaOnOff) { + getCode() { + if(this.captchaOnOff){ + getCodeImg().then(res => { this.codeUrl = "data:image/gif;base64," + res.data.img; - this.loginForm.uuid = res.data.uuid; - } - }); + this.loginForm.uuid = res.data.uuid; + }); + } }, getCookie() { const username = Cookies.get("username");