feat(mfa-ui): 前端 MFA UI - 绑定+验证+高危弹窗+管理 (Phase 2.4 task #20)
This commit is contained in:
@@ -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 },
|
||||
},
|
||||
]
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user