From 95f62256b39ce2a4e5f58bea7decdebfd214217b Mon Sep 17 00:00:00 2001 From: jinghui <181050043@qq.com> Date: Mon, 26 Oct 2026 17:55:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BA=94=E7=94=A8=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=94=B9=E5=90=8D=E6=A6=82=E8=A7=88=E5=B9=B6=E4=BD=9C=E4=B8=BA?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ public/app.js | 4 ++-- public/index.html | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) 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容器管理增强版