diff --git a/web/auth/login.html b/web/auth/login.html index f5c642a..02532df 100644 --- a/web/auth/login.html +++ b/web/auth/login.html @@ -269,9 +269,9 @@ @@ -291,7 +291,8 @@ function clearAlert() { $("alert").className = "alert"; } function nextUrl() { - return new URLSearchParams(location.search).get("next") || "../index.html"; + // 无门户页(2026-08):登录后默认直达驾驶舱 + return new URLSearchParams(location.search).get("next") || "../cockpit/"; } document.addEventListener("DOMContentLoaded", function () { diff --git a/web/auth/users.html b/web/auth/users.html index 81027a3..1cfa343 100644 --- a/web/auth/users.html +++ b/web/auth/users.html @@ -39,7 +39,7 @@ -
+正在进入驾驶舱… 立即进入
+ diff --git a/web/shared/pro-header.js b/web/shared/pro-header.js index c138ede..f1bfb8f 100644 --- a/web/shared/pro-header.js +++ b/web/shared/pro-header.js @@ -52,7 +52,7 @@ return mods[i].key; } } - return path === "/" || /\/index\.html$/.test(path) ? "portal" : ""; + return ""; // 根路径已重定向驾驶舱,无独立「门户」页 } /* 当前 hash 命中的子菜单 key(# 前缀归一化) */ @@ -96,7 +96,8 @@ if (!body || document.querySelector(".pro-sider")) return; var title = body.getAttribute("data-pro-title") || document.title || ""; - var home = body.getAttribute("data-pro-home") || "../index.html"; + // 无门户页(2026-08):logo 与默认首页均指向驾驶舱 + var home = body.getAttribute("data-pro-home") || "../cockpit/"; var loginUrl = body.getAttribute("data-pro-login") || "../auth/login.html"; var prefix = rootPrefix(); var active = activeModuleKey(); @@ -202,7 +203,7 @@ function renderMenu(user) { menu.innerHTML = ""; - addLeafItem("portal", "🏠", "门户", prefix + "index.html"); + // 无门户页(2026-08):菜单即模块清单,按角色过滤 var mods = user ? IAOP_SESSION.modulesFor(user.role) : []; mods.forEach(function (m) { if (m.children && m.children.length) addSubMenu(m);