From 1e2cb25af46f6f8d66a68585ce99d2590241a85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Mon, 25 Apr 2022 12:42:36 +0800 Subject: [PATCH] =?UTF-8?q?fix=E7=99=BB=E5=BD=95=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E5=BC=80=E5=85=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login.vue | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index a785ca8..51f1b9b 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -11,28 +11,14 @@ - + - + @@ -135,11 +121,8 @@ function handleLogin() { function getCode() { getCodeImg().then((res) => { - captchaOnOff.value = res.captchaOnOff === undefined ? true : res.captchaOnOff - if (captchaOnOff.value) { - codeUrl.value = 'data:image/gif;base64,' + res.data.img - loginForm.value.uuid = res.data.uuid - } + codeUrl.value = 'data:image/gif;base64,' + res.data.img + loginForm.value.uuid = res.data.uuid }) }