feat: OTP首次绑定 + 三端登录修复 + 管理端权限修复 (2026-07-08)
OTP首次绑定: - 新增统一 OTP 路由 /auth/otp-* (otp.py + router.py) - 坐席端 OTP 绑定面板 (OtpBindPanel.vue) - 管理端 OTP 管理列表 (MfaManage.vue) - agent_login 签发半认证 token 支持首次绑定流程 三端登录修复: - 坐席/管理端去掉'返回扫码登录'按钮 - 管理端改为二维码始终可见+轮询扫码状态 - 员工端 /itdesk/ 改为 alias 直接服务 H5 (不再301重定向) - docker-compose 添加 h5 volume 挂载 管理端权限修复: - 扫码登录改用 get_user_roles() 替代写死 roles=['agent'] - get_user_roles() 增加 agents.role 回退 - 新增 GET /admin/roles/user-roles 端点 - 角色管理页加载用户角色分配数据 文档更新: - OTP PRD + 系统设计文档 - 故障排查手册 v1.1 (新增6案例) - nginx 生产基准配置
This commit is contained in:
@@ -144,7 +144,7 @@ const routes = [
|
||||
path: 'mfa-manage',
|
||||
name: 'MfaManage',
|
||||
component: () => import('@/views/MfaManage.vue'),
|
||||
meta: { title: 'MFA 管理', requiresAuth: true },
|
||||
meta: { title: 'OTP 管理', requiresAuth: true },
|
||||
},
|
||||
{
|
||||
// 满意度评价统计
|
||||
@@ -181,6 +181,20 @@ const routes = [
|
||||
component: () => import('@/views/dashboard/AutoMetrics.vue'),
|
||||
meta: { title: '自动化指标', requiresAuth: true },
|
||||
},
|
||||
{
|
||||
// Tier1 知识库迭代 — 提案管理(D7)
|
||||
path: 'knowledge-iteration',
|
||||
name: 'KnowledgeIteration',
|
||||
component: () => import('@/views/KnowledgeIteration.vue'),
|
||||
meta: { title: '知识迭代管理', requiresAuth: true },
|
||||
},
|
||||
{
|
||||
// Tier1 知识库迭代 — RAGFlow 文档摄入(通道 C / P1-5)
|
||||
path: 'ragflow-ingestion',
|
||||
name: 'RagflowIngestion',
|
||||
component: () => import('@/views/RagflowIngestion.vue'),
|
||||
meta: { title: 'RAGFlow文档导入', requiresAuth: true },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user