From 225a7a1932d7a79e128bda666d82898bbaabef4b Mon Sep 17 00:00:00 2001 From: zc Date: Mon, 15 Jun 2026 14:06:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B7=E5=8D=A1=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/components/card/index.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/views/login/components/card/index.vue b/src/views/login/components/card/index.vue index a924e76..b68f34e 100644 --- a/src/views/login/components/card/index.vue +++ b/src/views/login/components/card/index.vue @@ -44,11 +44,6 @@ const loading = ref(false) // 登录 const handleLogin = async () => { console.log("卡号登录handleLogin") - // 检查用户是否已经登录 - if (userStore.token) { - console.log("卡号-用户已登录") - return - } const isInvalid = await formRef.value?.validate() if (isInvalid) return @@ -75,6 +70,8 @@ const handleLogin = async () => { Message.success('欢迎使用') } catch (error) { // 登录失败处理 + console.error('刷卡登录失败:', error) + Message.error( '登录失败,请刷新页面') } finally { loading.value = false }