From 9dd4a75393a173a59b256ae905c001baf1f641a3 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Mon, 18 May 2026 16:14:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=92=8C=E6=8A=98=E5=8F=A0=E4=BE=A7=E6=A0=8F?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/project_context.md | 6 ++++++ frontend/src/AppShell.vue | 18 ++++++++++++------ frontend/src/styles.css | 7 ++++++- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/docs/project_context.md b/docs/project_context.md index d69f80f..e831a40 100644 --- a/docs/project_context.md +++ b/docs/project_context.md @@ -1,5 +1,11 @@ # 项目上下文记录 +## 2026-05-18:修复主题按钮图标和折叠侧栏版本显示 + +- `frontend/src/AppShell.vue` 的主题切换按钮现在根据 `themeName` 动态显示 `MoonOutline` 或 `SunnyOutline`,切换主题后图标和标题同步变化。 +- 侧边栏底部版本信息拆分为版本标签、版本号和 Power by 文案;折叠侧边栏时只保留纯版本号 `v2.0.2`,隐藏“版本:”和 Power by。 +- 已执行 `npm run build`,构建通过;未启动浏览器或 headless Chrome。 + ## 2026-05-18:修复登录页回车提交 - `frontend/src/components/LoginView.vue` 的登录按钮改为原生 submit 类型,继续复用 `n-form` 的 `@submit.prevent` 登录流程。 diff --git a/frontend/src/AppShell.vue b/frontend/src/AppShell.vue index 626fe3a..254fad2 100644 --- a/frontend/src/AppShell.vue +++ b/frontend/src/AppShell.vue @@ -22,8 +22,11 @@ @update:value="handleMenuChange" /> @@ -59,8 +62,8 @@ -