From ba9b1f9d2b3eabb530d2864bd229b02ecd4d61ab Mon Sep 17 00:00:00 2001 From: root Date: Fri, 27 Feb 2026 22:30:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A3=9E=E4=B9=A6=E5=86=85=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E8=87=AA=E5=8A=A8=E6=98=BE=E7=A4=BA=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 JSBridge SDK(URL 不可用) - 飞书内环境自动触发二维码登录 Co-Authored-By: Claude Opus 4.6 --- frontend/index.html | 2 -- frontend/src/pages/login/index.tsx | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 6ed8d14..2d555fe 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -7,8 +7,6 @@ frontend - -
diff --git a/frontend/src/pages/login/index.tsx b/frontend/src/pages/login/index.tsx index 60d4cb8..3299083 100644 --- a/frontend/src/pages/login/index.tsx +++ b/frontend/src/pages/login/index.tsx @@ -110,11 +110,11 @@ export default function Login() { setEnvironment('feishu') handleFeishuAutoLogin() } else if (isInFeishu) { - // 飞书内但 tt 对象不可用:提示用户 - console.log('⚠️ 在飞书内但 tt 对象不可用') - setEnvironment('feishu') + // 飞书内但 tt 对象不可用:自动显示二维码登录 + console.log('⚠️ 在飞书内但 tt 对象不可用,使用二维码登录') + setEnvironment('external') setLoading(false) - Toast.show('请在飞书客户端中打开,或使用扫码登录') + setShowQRCode(true) } else { // 飞书外:显示登录选项 console.log('📱 飞书外环境,显示登录选项')