From 682f1b06b9d142234b2c8485df0b82fc324a5c02 Mon Sep 17 00:00:00 2001 From: lijun Date: Wed, 22 Oct 2025 20:09:32 +0800 Subject: [PATCH] =?UTF-8?q?oauth=E6=B7=BB=E5=8A=A0=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pages/login.vue | 45 ++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/src/views/pages/login.vue b/src/views/pages/login.vue index 37d8504..5a7b989 100644 --- a/src/views/pages/login.vue +++ b/src/views/pages/login.vue @@ -96,7 +96,8 @@ 输入验证码 - + - - - + + + @@ -349,9 +347,22 @@ const thirdLogin = async (type) => { return; } let statusResp = await getThirdPartyLoginStatus({ uuid: uuid, host_id: loginData.value.fingerprint }); - if (statusResp["code"] !== 0) { - ElMessage.error("获取登录状态失败!请稍后再试"); + if (statusResp["code"] == 1102) { clearInterval(timer.value); + ElMessage.error(statusResp["message"]); + //需二次认证,支持方式 + second_auth_visible.value = true; + second_auth_state_key.value = statusResp["data"]["state"]; + let types = statusResp["data"]["type"]; + second_auth_type_list.value = types.split(","); + //删除''空值 + second_auth_type_list.value = second_auth_type_list.value.filter(item => item); + second_auth_method.value = second_auth_type_list.value[0]; + //console.log("second_auth_type_list:", second_auth_type_list.value); + return; + + } else if (statusResp["code"] != 0) { + ElMessage.error(statusResp["message"] || "该账号已被禁用,请联系管理员!"); return; } if (statusResp["code"] === 9) {