diff --git a/CHANGELOG.md b/CHANGELOG.md index cb03f9d..dbb475e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # 更新日志 +## 2026-10-26 → 🔧 「应用」菜单改名「概览」并作为默认页 + +- 🔧 左侧菜单「应用」→「**概览**」,页面标题同步 +- 🔧 打开面板默认进入概览页(应用健康看板 + 优化建议),返回按钮也回到概览 +- 🔧 徽章仍显示异常应用数(当前 0) + ## 2026-10-26 → 🐛 静态资源禁用缓存,避免改完看不到 - 🐛 菜单改名后浏览器仍显示旧文案 → 静态资源改为 `Cache-Control: no-store, no-cache, must-revalidate`,去掉 ETag/Last-Modified,更新后强制取最新 diff --git a/public/app.js b/public/app.js index 9745741..3513ddf 100644 --- a/public/app.js +++ b/public/app.js @@ -69,7 +69,7 @@ function toast(msg, err) { } /* ---------------- 路由 ---------------- */ -const TITLES = { apps: '应用', containers: '运行的容器', stopped: '停止的容器', images: '本地镜像', registry: '镜像仓库', networks: '网络', settings: '告警设置' }; +const TITLES = { apps: '概览', containers: '运行的容器', stopped: '停止的容器', images: '本地镜像', registry: '镜像仓库', networks: '网络', settings: '告警设置' }; const SORTS = { apps: [['severity', '异常优先'], ['cpu', 'CPU 占用'], ['mem', '内存占用'], ['containers', '容器数'], ['name', '名称']], containers: [['cpu', 'CPU 占用'], ['mem', '内存占用'], ['net', '网络速率'], ['io', '磁盘 IO'], ['pids', '进程数'], ['name', '名称']], @@ -329,7 +329,7 @@ async function openApp(key) {
`; - $('#backBtn').onclick = () => { $('#pageTitle').textContent = '应用'; go('apps'); }; + $('#backBtn').onclick = () => { $('#pageTitle').textContent = '概览'; go('apps'); }; $$('#view [data-app-act]').forEach(b => b.onclick = async () => { const act = b.dataset.appAct; if (act === 'stop' && !confirm('确定停止该应用的全部容器?')) return; diff --git a/public/index.html b/public/index.html index d4d71d2..83de510 100644 --- a/public/index.html +++ b/public/index.html @@ -16,7 +16,7 @@ 飞牛docker容器管理增强版