From 33474fae1be41e0004783c15edf8898842b1c571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E8=BE=89?= <13935151924@163.com> Date: Tue, 18 Nov 2025 11:09:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E4=BF=9D=E5=8D=A1=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/id-card-login.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/login/id-card-login.vue b/pages/login/id-card-login.vue index ecf9739..3222e2f 100644 --- a/pages/login/id-card-login.vue +++ b/pages/login/id-card-login.vue @@ -72,9 +72,9 @@ const handleIdCardLogin = async (idCard) => { }) // 跳转到首页 - // uni.reLaunch({ - // url: '/pages/index/index' - // }) + uni.reLaunch({ + url: '/pages/index/index' + }) } else { uni.showToast({ title: '登录失败', @@ -172,6 +172,7 @@ const processIdCardLogin = async (idCard) => { // 验证身份证号码格式(简单验证) if (!decodedIdCard || decodedIdCard.length < 15) { throw new Error('身份证号码格式不正确') + return; } // 调用登录接口