refactor(admin): 返回主页移到底部主题与退出之间
- 从导航区移到底部按钮组,夹在主题切换与退出登录中间 - 仍为整页跳转回用户端官网首页 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -87,15 +87,6 @@ export function AdminSidebar({ open, onClose }: Props) {
|
|||||||
{item.label}
|
{item.label}
|
||||||
</NavLink>
|
</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>
|
</nav>
|
||||||
|
|
||||||
<div className="space-y-1 border-t border-hairline p-3">
|
<div className="space-y-1 border-t border-hairline p-3">
|
||||||
@@ -111,6 +102,10 @@ export function AdminSidebar({ open, onClose }: Props) {
|
|||||||
)}
|
)}
|
||||||
{resolved === 'dark' ? '浅色模式' : '深色模式'}
|
{resolved === 'dark' ? '浅色模式' : '深色模式'}
|
||||||
</button>
|
</button>
|
||||||
|
{/* 整页跳转回用户端官网首页(生产同源) */}
|
||||||
|
<a href="/" onClick={onClose} className={bottomBtnCls}>
|
||||||
|
<Home className="size-[18px]" /> 返回主页
|
||||||
|
</a>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user