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 @@
输入验证码
-
+
@@ -104,20 +105,17 @@
-
-
-
-
-
- {{ countdown > 0 ? `${countdown}s后重发` : "发送验证码" }}
-
-
-
+
+
+
+
+
+
+
+ {{ countdown > 0 ? `${countdown}s后重发` : "发送验证码" }}
+
+
+
@@ -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) {