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; } // 调用登录接口