From d90a51ebf48d33b7d8b58d32b01ad65bf6452ba1 Mon Sep 17 00:00:00 2001 From: luo Date: Fri, 3 Jul 2026 12:29:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E6=8D=A2=E8=BF=90=E8=90=A5?= =?UTF-8?q?=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/login.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index c2fffce..a2bff61 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -195,7 +195,8 @@ if (scanValue.includes('?')) { const params = new URLSearchParams(scanValue.split('?')[1]); - return params.get('cardNum') || params.get('identifier') || ''; + const queryValue = params.get('cardNum') || params.get('identifier'); + if (queryValue) return queryValue; } const match = scanValue.match(/=([^=]+)$/);