From 080af1151b4dfddd2503746b0edb9660c4d9cd82 Mon Sep 17 00:00:00 2001 From: flym Date: Fri, 11 Sep 2026 17:29:55 +0800 Subject: [PATCH] fix: use full navigation for cms entry --- components/account-panel.tsx | 2 +- components/admin/gate.tsx | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/components/account-panel.tsx b/components/account-panel.tsx index 468f570..f2cd98e 100644 --- a/components/account-panel.tsx +++ b/components/account-panel.tsx @@ -54,7 +54,7 @@ export function AccountPanel() { return <>
-

Profile

基本资料

用户名
{user.username}
邮箱
{user.email}
角色
{user.role}
{user.role === "admin" ? <>
业务后台
进入管理后台
内容管理
进入 CMS
: null}
额度周期
{new Date(usage.period_start).toLocaleDateString()} 至 {new Date(usage.period_end).toLocaleDateString()}
+

Profile

基本资料

用户名
{user.username}
邮箱
{user.email}
角色
{user.role}
{user.role === "admin" ? <>
业务后台
进入管理后台
内容管理
进入 CMS
: null}
额度周期
{new Date(usage.period_start).toLocaleDateString()} 至 {new Date(usage.period_end).toLocaleDateString()}

Usage

额度明细

打开工作台

Security

修改密码

{passwordMessage ?

{passwordMessage}

: null}
; diff --git a/components/admin/gate.tsx b/components/admin/gate.tsx index 217b6bc..7b589b2 100644 --- a/components/admin/gate.tsx +++ b/components/admin/gate.tsx @@ -58,7 +58,11 @@ export function AdminGate({ children }: { children: React.ReactNode }) {