From 0b3dc0b9ae4f2c0108262f91ccab677dfc100e05 Mon Sep 17 00:00:00 2001 From: bot_dev1 Date: Wed, 5 Aug 2026 15:54:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E9=97=A8=E6=88=B7?= =?UTF-8?q?=E9=A1=B5=EF=BC=8C=E7=99=BB=E5=BD=95=E5=90=8E=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=9B=B4=E8=BE=BE=E9=A9=BE=E9=A9=B6=E8=88=B1=EF=BC=88issue=20#?= =?UTF-8?q?131=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - web/index.html 改为纯重定向页(/ → cockpit/,驾驶舱自带登录守卫) - 登录页默认 next 改为 ../cockpit/,页脚入口链接同步调整 - Sider 菜单移除「门户」项,logo/默认首页指向驾驶舱 --- web/auth/login.html | 5 +- web/auth/users.html | 2 +- web/index.html | 188 +++------------------------------------ web/shared/pro-header.js | 7 +- 4 files changed, 21 insertions(+), 181 deletions(-) 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 @@ - +

用户/角色管理 RBAC 三级:readonly / engineer / admin · PRD 8.2

diff --git a/web/index.html b/web/index.html index 307cb7e..e333bb5 100644 --- a/web/index.html +++ b/web/index.html @@ -3,183 +3,21 @@ -iAOP 云美工业AI优化平台 · 门户 - +iAOP 云美工业AI优化平台 + - - -
- - -
-
- - - - - - - + + +

正在进入驾驶舱… 立即进入

+ 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);