feat: 添加飞书环境调试页面和详细日志
修改内容: 1. 新增 debug-feishu.tsx - 飞书环境调试页面 2. approval/detail.tsx - 添加详细的调试日志 3. router/index.tsx - 添加调试页面路由 4. business-trip.ts - 修复 import 错误 调试页面功能: - 检测是否在飞书客户端内 - 显示 window.tt 等对象状态 - 测试飞书免登功能 使用方法: 1. 在飞书客户端中打开: https://xsm.dev.hnxinyouhe.com/debug-feishu 2. 查看环境信息 3. 点击"测试飞书免登"按钮 相关文件: - frontend/src/pages/debug-feishu.tsx - frontend/src/pages/approval/detail.tsx - frontend/src/router/index.tsx - frontend/src/services/business-trip.ts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,7 @@ import ApprovalList from '@/pages/approval/list'
|
||||
import ApprovalDetail from '@/pages/approval/detail'
|
||||
import Login from '@/pages/login'
|
||||
import SimpleLogin from '@/pages/login-simple'
|
||||
import DebugFeishu from '@/pages/debug-feishu'
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
@@ -35,6 +36,7 @@ const router = createBrowserRouter([
|
||||
},
|
||||
{ path: '/login', element: <Login /> },
|
||||
{ path: '/login-simple', element: <SimpleLogin /> },
|
||||
{ path: '/debug-feishu', element: <DebugFeishu /> },
|
||||
{ path: '*', element: <Navigate to='/login' replace /> },
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user