🐛 修复设置标签导航退出管理员页面问题

修复 2026 管理后台系统设置页的分区导航与 Hash 路由冲突,避免点击顶部标签后被 Vue Router 解析为公共路由并离开管理员页面。

- 将设置分区的普通 Hash 链接改为同页滚动按钮,不修改当前后台路由
- 保留管理员布局和登录会话,并兼容 reduced-motion 设置
- 修复公共页管理员入口显示原始 i18n key 的问题
- 已通过架构检查、Vue 类型检查和 Vite 生产构建
This commit is contained in:
orion committed 2026-07-21 11:36:06 +08:00
1 parent b60c003ec2
commit 6d781cab58
2 files changed
+13 -5

No files matched your search

+2 -2
View File
@@ -24,8 +24,8 @@
<router-link
to="/login"
class="flex h-11 w-11 items-center justify-center rounded-lg text-sm transition duration-200 hover:bg-[#dcebed] dark:hover:bg-[#294047]"
:aria-label="t('admin.login.title')"
:title="t('admin.login.title')"
:aria-label="t('manage.login.title')"
:title="t('manage.login.title')"
:class="[
isDarkMode
? 'text-gray-400 hover:text-indigo-400'