refactor(admin): 返回主页移到底部主题与退出之间

- 从导航区移到底部按钮组,夹在主题切换与退出登录中间
- 仍为整页跳转回用户端官网首页

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Blizzard
2026-07-17 17:13:17 +08:00
parent efb805fd2d
commit 20c6e0d7c2
+4 -9
View File
@@ -87,15 +87,6 @@ export function AdminSidebar({ open, onClose }: Props) {
{item.label}
</NavLink>
))}
{/* 整页跳转回用户端官网首页(生产同源) */}
<a
href="/"
onClick={onClose}
className="flex items-center gap-3 rounded-lg px-3 py-2.5 text-[14px] text-ink-2 transition-colors hover:bg-ground hover:text-ink"
>
<Home className="size-[18px]" />
</a>
</nav>
<div className="space-y-1 border-t border-hairline p-3">
@@ -111,6 +102,10 @@ export function AdminSidebar({ open, onClose }: Props) {
)}
{resolved === 'dark' ? '浅色模式' : '深色模式'}
</button>
{/* 整页跳转回用户端官网首页(生产同源) */}
<a href="/" onClick={onClose} className={bottomBtnCls}>
<Home className="size-[18px]" />
</a>
<button
type="button"
onClick={() => {