From 2f820e297271125085bc2c89a097b4f91cada2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=99=E9=83=BD=E6=B2=A1=E7=94=A8?= <615206459@qq.com> Date: Sat, 7 Oct 2023 16:39:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/base/pages/login/index.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modules/base/pages/login/index.vue b/src/modules/base/pages/login/index.vue index ab6efe7..3f0d6a7 100644 --- a/src/modules/base/pages/login/index.vue +++ b/src/modules/base/pages/login/index.vue @@ -127,13 +127,12 @@ async function toLogin() { // 跳转首页 router.push("/"); - } catch (err) { + } catch (err: any) { // 刷新验证码 refs.picCaptcha.refresh(); - if (err instanceof Error) { - ElMessage.error(err.message); - } + // 提示错误 + ElMessage.error(err.message); } saving.value = false;