feat(mfa-ui): 前端 MFA UI - 绑定+验证+高危弹窗+管理 (Phase 2.4 task #20)

This commit is contained in:
Claude
2026-06-21 01:16:36 +08:00
parent c1ac9b936c
commit f564d0e42a
7 changed files with 1484 additions and 0 deletions
+9
View File
@@ -41,6 +41,15 @@ const routes = [
component: () => import('@/views/AgentPreviewView.vue'),
meta: { title: '坐席助手', requiresAuth: false },
},
// Phase 2.4 task #20 — MFA 首次绑定页(已登录用户访问,需 token 但不强制 mfa_bound)
{
path: '/mfa-bind',
name: 'MfaBind',
component: () => import('@/views/MfaBind.vue'),
// 不强制 requiresAuth:false,因为我们已经登录了(从 query token 拿到)
// 这里依靠守卫检查 token,但不强制 MFA 已绑定(否则永远进不去)
meta: { title: '绑定 MFA', requiresAuth: true },
},
]
// --------------------------------------------------------------------------