feat(web): 增加单点登录分流与本地应急入口

开启统一认证后,正常登录入口直接跳转认证中心,并将本地账号入口收敛到 /login 应急页;未开启统一认证时继续保留工作台内原有登录方式。

影响范围仅限 Web 登录路由、认证入口展示和相关测试,不修改认证接口或 OpenAPI。风险主要在运行时身份状态判断,已通过 141 项前端测试、生产构建、无缓存类型检查及浏览器分支验证。
This commit is contained in:
2026-07-31 13:43:06 +08:00
parent cae97b6f77
commit 88c971564a
10 changed files with 169 additions and 14 deletions
+6
View File
@@ -36,6 +36,12 @@ describe('API documentation routes', () => {
});
});
describe('login route', () => {
it('maps /login to the dedicated emergency login page', () => {
expect(parseAppRoute('/login').activePage).toBe('login');
});
});
describe('admin task routes', () => {
it('round-trips the complete admin task query through the URL', () => {
const query = {