feat: 移除门户页,登录后默认直达驾驶舱(issue #131)

- web/index.html 改为纯重定向页(/ → cockpit/,驾驶舱自带登录守卫)
- 登录页默认 next 改为 ../cockpit/,页脚入口链接同步调整
- Sider 菜单移除「门户」项,logo/默认首页指向驾驶舱
This commit is contained in:
2026-08-05 15:54:14 +08:00
parent 2f6b329745
commit 0b3dc0b9ae
4 changed files with 21 additions and 181 deletions
+3 -2
View File
@@ -269,9 +269,9 @@
<footer>
<div class="links">
<a href="../index.html">平台门户</a>
<a href="../cockpit/">驾驶舱</a>
<a href="../chat/assistant.html">对话助手</a>
<a href="../mobile/">移动端</a>
</div>
iAOP-Core v1.0 · 认证后端 core/auth(PBKDF2-HMAC-SHA256)· 部署底座 K8s/Helm
</footer>
@@ -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 () {
+1 -1
View File
@@ -39,7 +39,7 @@
</style>
<link rel="stylesheet" href="../shared/pro.css">
</head>
<body data-pro-title="用户与角色管理" data-pro-home="../index.html" data-pro-login="login.html">
<body data-pro-title="用户与角色管理" data-pro-home="../cockpit/" data-pro-login="login.html">
<header id="topbar">
<h1>用户/角色管理 <span class="sub">RBAC 三级:readonly / engineer / admin · PRD 8.2</span></h1>
<div id="topbar-right">