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 }) {